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:
parent
4f07025f49
commit
125a910069
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user