Skip to content

it's impossible to remove the user-agent header #704

Description

@UnCrevard

hello,

from code :

if (!headers.has('User-Agent')) {
headers.set('User-Agent', 'node-fetch/1.0 (+https://github.com/bitinn/node-fetch)');
}

I can change it but I CAN'T REMOVE IT.

So maybe something like this :

fetch(url,{
headers:{
"user-agent":null
})

it's not a big deal but I need it😊

thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions