mikekelly / hal-browser

An API browser for the hal+json media type
MIT License
835 stars 157 forks source link

protect the default headers for when custom headers are removed #59

Closed uglyog closed 9 years ago

uglyog commented 9 years ago

The custom request headers blow the defaults away. This merge request uses _.defaults to allow the custom headers to override the defaults without replacing them. Without this fix, adding a custom Accept header and then removing it does not restore the original Accept header.

mikekelly commented 9 years ago

great, thanks