Cannot set Accept-Encoding

Mar 10, 2014 at 1:12 PM
Hello,

I have tried setting Accept-Encoding through Casablanca and through the IXMLHttpRequest in the native_handle_options. However, it keeps getting overridden to Accept-Encoding: gzip; deflate

Any ideas on how I can stop my Accept-Encoding header from being overridden?

Thanks,
Ryan
Mar 11, 2014 at 6:36 PM
This is apparently a limitation of IXMLHttpRequest, which Casablanca uses on WinRT.
Mar 15, 2014 at 1:52 AM
Hi Ryan,

It is the limitation of IXMLHttpRequest2. I saw your post on Stackoverflow, you have already tried XHR_PROP_NO_DEFAULT_HEADERS property.
I tried this 'handle->SetProperty(XHR_PROP_NO_DEFAULT_HEADERS, 1);' but it did not remove Accept-Encoding: gzip, deflate from the headers. – rmmcnulty9 Mar 7 at 14:48
"Accept-Encoding" is one of the restricted headers which cannot be changed.

Thanks