GithubHelp home page GithubHelp logo

Comments (6)

oowl avatar oowl commented on May 23, 2024 1

will be fixed in #12658

from kong.

chobits avatar chobits commented on May 23, 2024

hi this error message occurs as expected, because the Kong project expects or requires the Content-Length header to be present in this case, for functionality related to request size limiting. Otherwise request-size-limiting plugin could not work without knowing the content-lenght field

from kong.

vm-001 avatar vm-001 commented on May 23, 2024

The lua-nginx-module made some changes about this behavior, see
https://github.com/openresty/lua-nginx-module/pull/2237/files#diff-e5adfbc2ed61393c8309bee7f85b858a67d5b75e4f3201610504aa571bb44323R90-R93

A bypass way is to explicitly provide the Content-Length(regardless it's zero) header for GET

from kong.

tomcatu avatar tomcatu commented on May 23, 2024

This involves requesting changes. Should the plug-in not check the GET request?

from kong.

vm-001 avatar vm-001 commented on May 23, 2024

I'm not saying that this is a reasonable workaround. It's just a theoretical bypass based on the root cause.

from kong.

janv8000 avatar janv8000 commented on May 23, 2024

Is this related to https://docs.konghq.com/gateway/latest/breaking-changes/#http2-requires-content-length-for-plugins-that-read-request-body ?

HTTP/2 requires Content-Length for plugins that read request body
Kong 3.6.x has introduced a regression for plugins that read the body of incoming requests. Clients must specif
... Kong is currently investigating potential remediations.

from kong.

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.