env-js icon indicating copy to clipboard operation
env-js copied to clipboard

Accepting non xml replies to XMLHttpRequests

Open emirikol opened this issue 14 years ago • 1 comments

When making an xhr request env-js croaks when receiving a non-xml response regardless of content-type headers. this can be avoided like this: https://github.com/thatcher/env-js/commit/a46fe6b1ff59f0596c162ee01e94ff256ee47bfe#diff-19

Note: that commit contains one error - checking request headers instead of response headers.

emirikol avatar Feb 07 '11 14:02 emirikol

If you can generate a pull request against the johnson fork, that'd be great.

smparkes avatar Feb 07 '11 16:02 smparkes