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:09:28 +04:00
parent 2b086b335d
commit 81108c46f5

View file

@ -427,14 +427,6 @@
// adding the status line
status = [[_response headerNamed: @"http"] value];
if (nil == status)
{
status = [[_response headerNamed: @"HTTP"] value];
}
if (nil == status)
{
status = [[_response headerNamed: @"Http"] value];
}
statusData = [status dataUsingEncoding: NSUTF8StringEncoding];
data = [[NSMutableData alloc] initWithData: statusData];
[_response deleteHeaderNamed: @"http"];