Fix custom request handler to work with other request methods (put, post, etc) #535

Closed
wants to merge 2 commits into from

2 participants

@jacwright

The custom handler implementation was only partially finished. When creating a custom handler such as:

var req = request.defaults({}, customHandler);

Only req(), req.get(), req.del() would use the custom handler. req.put(), req.post(), req.patch(), and req.head() would not. This fixes the problem using the same solution that existed, only filling in the other methods that were missed.

@mikeal
request member

no longer merges cleanly :(

@mikeal mikeal closed this Aug 27, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment