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 863af22bd5
commit 2446834860

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)) {