Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to send a post request without headers? #533

Open
JoshuaConcon opened this issue Aug 1, 2019 · 2 comments
Open

Is it possible to send a post request without headers? #533

JoshuaConcon opened this issue Aug 1, 2019 · 2 comments

Comments

@JoshuaConcon
Copy link

Wondering if this is possible, since every single time I send a request with headers: {}, I get the following back (when I use .inspectRequestHeaders().

Request Headers:
    Content-Type: application/json
    User-Agent: frisby/2.1.1 (+https://github.com/vlucas/frisby)

Is it possible to send an empty header?

@luuizeduardo
Copy link

If you are setting the headers with .setup function, you can pass a parameter to replace the default options.

Your request probably will be something like that:

image

@vlucas
Copy link
Owner

vlucas commented Oct 21, 2019

Yes, the frisby.setup() method has a second argument to not merge, but set exactly what you provide. If you send that empty headers, it should work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants