[swift-corelibs-dev] Wrong type in NSHTTPURLResponse

Daniel Eggert danieleggert at me.com
Tue Mar 15 12:42:14 CDT 2016


On 15 Mar 2016, at 16:16, Daniel Eggert via swift-corelibs-dev <swift-corelibs-dev at swift.org> wrote:
> 
> The allHeaderFields in
> 
> public class NSHTTPURLResponse : NSURLResponse {
>    [...]
>    public let allHeaderFields: [NSObject : AnyObject]
> }
> 
> should have been [String : String]
> 
> The initialiser has the correct [String : String] type, though.
> 
> Somehow Apple missed this in their API, too. What's the procedure to get this changed / fixed?
> 
> /Daniel


I've changed it as part of this pull request:

https://github.com/apple/swift-corelibs-foundation/pull/287

I'm happy to change it back if need be.

/Daniel



More information about the swift-corelibs-dev mailing list