Fix NSURLSession header fields not always being matched case insensitive.

This commit is contained in:
Frederik Seiffert 2023-01-13 12:56:42 +01:00 committed by Frederik Seiffert
parent 18f81f9ccc
commit cb6c53b84d
5 changed files with 24 additions and 3 deletions

View file

@ -378,6 +378,13 @@ static SEL objSel;
return [copy initWithDictionary: self copyItems: NO];
}
- (id) mutableCopyWithZone: (NSZone*)z
{
NSMutableDictionary *copy = [_GSMutableInsensitiveDictionary allocWithZone: z];
return [copy initWithDictionary: self copyItems: NO];
}
- (id) init
{
return [self initWithCapacity: 0];