Re: Why does NSURLSession return NSURLResponse instead of NSHTTPURLResponse
site_archiver@lists.apple.com Delivered-To: macnetworkprog@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=oSufXCTCWPxmeD/Lsuc6cntsPWF0r NXAVab65TGN6Zw=; b=evO6UDelo//3R/D8gWWDrbJIWZyTjXgxCzEbKz9RB1JZa NBZb5PatjEt/jgYe6vDn1WQQKwHIWXx2zv82HUB+BsALs+Cs9SjKCmR5ZwOqdmLi VXMdVmNjy99ucoQ0pVKrs9TfnZuv9QM+OjyHY8rVl1q1xaPoKivp9NoYN3MFRTY5 TNH/IIKadboV8EZhymFZgOeMtF2Dhca9UEDzl7+EsC5hHrmlmVd6pFzr39gBsqKl 3j2BcDGRXx/CZYByjUGw5eCV2p89NCZG+jyij0/KLnvPw1BJm8A06tygeTzrMHCJ xI+Lw0xce3LBvMNZpXRZGBhuNgRezyaSHardHsSWw==
On Oct 17, 2017, at 3:05 PM, Sebastien Boisvert <sebastienboisvert@yahoo.com> 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 (Macnetworkprog@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/macnetworkprog/site_archiver%40lists... This email sent to site_archiver@lists.apple.com
participants (1)
-
Jens Alfke