Re: Why does NSURLSession return NSURLResponse instead of NSHTTPURLResponse
Re: Why does NSURLSession return NSURLResponse instead of NSHTTPURLResponse
- Subject: Re: Why does NSURLSession return NSURLResponse instead of NSHTTPURLResponse
- From: email@hidden
- Date: Wed, 18 Oct 2017 09:06:11 +0900
Isn’t NSHTTPURLResponse a subclass of NSURLResponse?
> On Oct 18, 2017, at 7:53, Jens Alfke <email@hidden> wrote:
>
>
>
>> On Oct 17, 2017, at 3:05 PM, Sebastien Boisvert
>> <email@hidden> wrote:
>>
>> I've noticed that most times, the response will come back as a
>> NSHTTPURLResponse, other times only as a NSURLResponse (which leads to a
>> crash when I try to get the -statusCode).
>
> I’ve never seen a request for an HTTP[S] URL return a response that wasn’t an
> NSHTTPURLResponse, so that’s definitely unexpected!
>
> Are you certain that the URLs in your requests always have the scheme “http”
> or “https”?
>
> —Jens
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Macnetworkprog mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden