2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 12:49:34 +00:00

HttpUtils: add Connection:Close (Forum #24163)

git-svn-id: https://svn.fhem.de/fhem/trunk@6038 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2014-06-03 08:01:01 +00:00
parent 4f07025f49
commit 125a910069

View File

@ -190,6 +190,7 @@ HttpUtils_Connect2($)
my $hdr = "$method $hash->{path} HTTP/1.1\r\n";
$hdr .= "Host: $hash->{host}\r\n";
$hdr .= "Connection: Close\r\n";
$hdr .= "Authorization: Basic $hash->{auth}\r\n" if(defined($hash->{auth}));
$hdr .= $hash->{header}."\r\n" if(defined($hash->{header}));
if(defined($data)) {