You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, thanks for all the great work in XHook and XDomain 😄 I am using it with superagent and ran into a bug where superagent can’t automatically decode the response body because the response content-type is undefined. I tracked it down to a small bug in XHook as outlined below.
The getResponseHeader method should not treat headers as case sensitive. I’d suggest [normalizing, e.g. lowercasing, all response headers](:
First of all, thanks for all the great work in XHook and XDomain 😄 I am using it with superagent and ran into a bug where superagent can’t automatically decode the response body because the response
content-type
isundefined
. I tracked it down to a small bug in XHook as outlined below.The
getResponseHeader
method should not treat headers as case sensitive. I’d suggest [normalizing, e.g. lowercasing, all response headers](:xhook/src/xhook.coffee
Lines 121 to 134 in bb38b1e
headers
.W3C compatibility tests: https://github.com/w3c/web-platform-tests/blob/master/XMLHttpRequest/getresponseheader-case-insensitive.htm
Let me know if you need any more info and have a great day!
The text was updated successfully, but these errors were encountered: