Closed brianstarke closed 10 years ago
Looks good to me.
Can you add a simple unit test for this, making sure http.request
gets the headers object, to make sure this never regresses in the future?
No problem.
Oops! Case of the Mondays.
On second thought, I just added these 2 assertions to the pre-existing unit test. Let me know if you think it's better as two test cases.
Perfectly fine with that. :)
Published as 0.7.0 in npm :)
I found this useful for adding in an Authorization header.