Skip to content

Conversation

@sterpe
Copy link
Contributor

@sterpe sterpe commented Feb 25, 2016

This PR covers an attempt at proposal for providing more customization of the XHRs sent by vast-vmap as part of the fetchXML and (to a lesser extent) pixel tracking flow.

Was attempting to do this in a way that had minimal impact on any existing way in which the code was used anywhere and without modifying or changing any function parameters or apis, yet still allow code calling into vast-vmap to have a way to specify modification such as withCredentials or to add requestHeaders in a way that would be less contentious.

Thoughts?

@sterpe
Copy link
Contributor Author

sterpe commented Feb 25, 2016

And threw in the ability to overwrite the used XHR constructor, because it was just 1 extra line.

jonhoo added a commit that referenced this pull request Feb 25, 2016
Customization of the XHR sent by `vast-vmap`
@jonhoo jonhoo merged commit c449f23 into jonhoo:master Feb 25, 2016
@jonhoo
Copy link
Owner

jonhoo commented Feb 25, 2016

I love it. Merged.

@sterpe
Copy link
Contributor Author

sterpe commented Feb 25, 2016

Not sure why the build failed, seems like issue with travis anyway the merge built and tested successfully here: https://travis-ci.org/jonhoo/vast-vmap/builds/111812093

@jonhoo
Copy link
Owner

jonhoo commented Feb 26, 2016

Yeah, Travis is being buggy. It was a build error, not a test failure. master built fine and passed all the tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants