Update Tests/base/NSURLConnection/Helpers/SimpleWebServer.m

Co-authored-by: Hugo Melder <service@hugomelder.com>
This commit is contained in:
Sergei Golovin 2024-03-08 07:08:20 +04:00
parent 1db3a482fb
commit 2b086b335d

View file

@ -384,11 +384,7 @@
NSString *connection;
// adding the 'Connection' to the response
connection = [[_request headerNamed: @"Connection"] value];
if (nil == connection)
{
connection = [[_request headerNamed: @"connection"] value];
}
connection = [[_request headerNamed: @"connection"] value];
// if the client didn't supply the header 'Connection' or
// explicitly stated to close the current connection
_isClose = (nil == connection ||