Skip to content

On node.js don't override a base url already set in xhr2 #138

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 5, 2019

Conversation

paul-rouse
Copy link
Contributor

xhr2 supports setting a base url globally on the prototype, using a static method. I was trying to do this, so it was rather distressing to find Affjax overriding it with localhost😄

This PR makes fixupUrl detect whether the xhr object has a defined nodejsBaseUrl, and if so it just behaves the same way as in the browser version. BTW the documentation comments say that this xhr2-only extension to the XHR API is "stable".

@CLAassistant
Copy link

CLAassistant commented Aug 22, 2019

CLA assistant check
All committers have signed the CLA.

@garyb
Copy link
Member

garyb commented Sep 5, 2019

Thanks!

@garyb garyb merged commit e286329 into purescript-contrib:master Sep 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants