HttpUtils: add Connection:Close (Forum #24163)

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@6038 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2014-06-03 08:01:01 +00:00
parent 64620b8057
commit 8334bfe302

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