GithubHelp home page GithubHelp logo

Comments (5)

niftylettuce avatar niftylettuce commented on May 22, 2024 1

v3.0.0 is released which fixes this issue 🎉

npm install frisbee@latest

from frisbee.

MatteoGioioso avatar MatteoGioioso commented on May 22, 2024

Any update on this?

from frisbee.

niftylettuce avatar niftylettuce commented on May 22, 2024

There is a new option being added to v3.0.0 which will be released later today. I will post another comment here which will inform you how to workaround this with the new option, it's pretty simple.

However I should inform you that according to https://tools.ietf.org/html/rfc7231 and also https://stackoverflow.com/questions/978061/http-get-with-request-body it is not a standard nor is there a semantic definition for having a payload in GET, HEAD, DELETE, and CONNECT requests.

A payload within a [GET,HEAD|DELETE|CONNECT] request message has no defined semantics;
sending a payload body on a [GET,HEAD|DELETE|CONNECT] request might cause some existing
implementations to reject the request.

from frisbee.

niftylettuce avatar niftylettuce commented on May 22, 2024

Also node-fetch itself does not allow a body on GET nor HEAD:

https://github.com/bitinn/node-fetch/blob/master/src/request.js#L75-L78

from frisbee.

niftylettuce avatar niftylettuce commented on May 22, 2024

I've fixed this and it will be released in v3.0.0 later today.

from frisbee.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.