mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 09:16:53 +00:00
01_FHEMWEB.pm: add httpHeader attribute (Forum #94911)
git-svn-id: https://svn.fhem.de/fhem/trunk@18085 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
a9d39788cd
commit
fcb743a4e2
@ -171,6 +171,7 @@ FHEMWEB_Initialize($)
|
|||||||
hiddengroupRegexp
|
hiddengroupRegexp
|
||||||
hiddenroom
|
hiddenroom
|
||||||
hiddenroomRegexp
|
hiddenroomRegexp
|
||||||
|
httpHeader
|
||||||
iconPath
|
iconPath
|
||||||
longpoll:0,1,websocket
|
longpoll:0,1,websocket
|
||||||
longpollSVG:1,0
|
longpollSVG:1,0
|
||||||
@ -422,6 +423,9 @@ FW_Read($$)
|
|||||||
if(defined($defs{$FW_wname}{CSRFTOKEN}) &&
|
if(defined($defs{$FW_wname}{CSRFTOKEN}) &&
|
||||||
AttrVal($FW_wname, "csrfTokenHTTPHeader", 1));
|
AttrVal($FW_wname, "csrfTokenHTTPHeader", 1));
|
||||||
|
|
||||||
|
my $hh = AttrVal($FW_wname, "httpHeader", undef);
|
||||||
|
$FW_headerlines .= "$hh\r\n" if($hh);
|
||||||
|
|
||||||
#########################
|
#########################
|
||||||
# Return 200 for OPTIONS or 405 for unsupported method
|
# Return 200 for OPTIONS or 405 for unsupported method
|
||||||
my ($method, $arg, $httpvers) = split(" ", $FW_httpheader[0], 3)
|
my ($method, $arg, $httpvers) = split(" ", $FW_httpheader[0], 3)
|
||||||
@ -3694,6 +3698,15 @@ FW_widgetOverride($$)
|
|||||||
</li>
|
</li>
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
|
<a name="httpHeader"></a>
|
||||||
|
<li>httpHeader<br>
|
||||||
|
One or more HTTP header lines to be sent out with each answer. Example:
|
||||||
|
<ul><code>
|
||||||
|
attr WEB httpHeader X-Clacks-Overhead: GNU Terry Pratchett
|
||||||
|
</code></ul>
|
||||||
|
</li>
|
||||||
|
<br>
|
||||||
|
|
||||||
|
|
||||||
<a name="HTTPS"></a>
|
<a name="HTTPS"></a>
|
||||||
<li>HTTPS<br>
|
<li>HTTPS<br>
|
||||||
@ -4406,6 +4419,16 @@ FW_widgetOverride($$)
|
|||||||
</li>
|
</li>
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
|
<a name="httpHeader"></a>
|
||||||
|
<li>httpHeader<br>
|
||||||
|
Eine oder mehrere HTTP-Header Zeile, die in jede Antwort eingebettet
|
||||||
|
wird. Beispiel:
|
||||||
|
<ul><code>
|
||||||
|
attr WEB httpHeader X-Clacks-Overhead: GNU Terry Pratchett
|
||||||
|
</code></ul>
|
||||||
|
</li>
|
||||||
|
<br>
|
||||||
|
|
||||||
<a name="HTTPS"></a>
|
<a name="HTTPS"></a>
|
||||||
<li>HTTPS<br>
|
<li>HTTPS<br>
|
||||||
Ermöglicht HTTPS Verbindungen. Es werden die Perl Module
|
Ermöglicht HTTPS Verbindungen. Es werden die Perl Module
|
||||||
|
Loading…
x
Reference in New Issue
Block a user