mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
Fix NSURLSession header fields not always being matched case insensitive.
This commit is contained in:
parent
18f81f9ccc
commit
cb6c53b84d
5 changed files with 24 additions and 3 deletions
|
@ -284,8 +284,15 @@ typedef struct {
|
|||
textEncodingName: nil];
|
||||
if (nil != self)
|
||||
{
|
||||
NSString *k;
|
||||
NSEnumerator *e = [headerFields keyEnumerator];
|
||||
while (nil != (k = [e nextObject]))
|
||||
{
|
||||
NSString *v = [headerFields objectForKey: k];
|
||||
[self _setValue: v forHTTPHeaderField: k];
|
||||
}
|
||||
|
||||
this->statusCode = statusCode;
|
||||
this->headers = [headerFields copy];
|
||||
[self _checkHeaders];
|
||||
}
|
||||
return self;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue