browserify / http-browserify

node's http module, but for the browser
MIT License
244 stars 110 forks source link

Add request.getHeader and request.removeHeader #41

Closed hendrikcech closed 10 years ago

hendrikcech commented 10 years ago

Node exposes functions to get and remove request headers. They are mentioned here. The xhr object doesn't expose similar functions so I had to introduce the _headers object and shift a few code blocks around.

ghost commented 10 years ago

Merged in 1.2.0. Thanks for the patch!