Closed lifeiscontent closed 6 years ago
Awesome! Thanks your contribribution!
Are you sure that code will do what you expect? If you're setting the header before calling .send()
and the handler sets that same header I think you won't be overriding the server value?
Can you please add a test to confirm it works.
ping @lifeiscontent
@jameslnewell hey sorry, I'm not using xhr-mock anymore so I punted on pushing this to the finish line due to time constraints.
I need this feature for a test I'm stubbing an xhr request against.