96_allowed.pm: allow HTTP OPTIONS request without authentication (Forum #51362)

git-svn-id: https://svn.fhem.de/fhem/trunk@11180 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2016-04-03 14:50:33 +00:00
parent 5a71c8209c
commit 87c9a87bbb

View File

@@ -88,6 +88,8 @@ allowed_Authenticate($$$$)
delete $cl->{".httpAuthHeader"};
return 0 if(!$basicAuth);
return 1 if($FW_httpheader[0] =~ m/^OPTIONS /); #Forum #51362
my $FW_httpheader = $param;
my $secret = $FW_httpheader->{Authorization};
$secret =~ s/^Basic //i if($secret);