tomas / needle

Nimble, streamable HTTP client for Node.js. With proxy, iconv, cookie, deflate & multipart support.
https://www.npmjs.com/package/needle
MIT License
1.63k stars 236 forks source link

Remove default headers #292

Open sleeyax opened 4 years ago

sleeyax commented 4 years ago

I have a very specific use case where I don't need the default Accept: */* header. Is there a way to remove it from the request?

Perhaps an option like noDefaults: true or something can be added to give full control to the programmer.