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:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user