On 14 Mar 2017, at 22:36, Jens Alfke <j...@mooseyard.com> wrote:

> I assume this is one of those headers that the client can’t control. :(


Right.  We actually list these headers in the docs these days.

<https://developer.apple.com/reference/foundation/nsmutableurlrequest>

> Is this something that could be fixed in the future, or is it considered a 
> non-feature for NSURLSession to allow HTTP connection upgrades?

Yes.  Enabling easier WebSocket client implementation was definitely a goal of 
the `.becomeStream` disposition, so it’s disappointing that it doesn’t work in 
practice.

Please file a bug about this, including the info you posted later down on this 
thread, then post the bug number here, just for the record.

<https://developer.apple.com/bug-reporting/>

Share and Enjoy
--
Quinn "The Eskimo!"                    <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware



 _______________________________________________
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/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to