tomas / needle

Nimble, streamable HTTP client for Node.js. With proxy, iconv, cookie, deflate & multipart support.

Home Page:https://www.npmjs.com/package/needle

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Remove default headers

sleeyax opened this issue · comments

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.