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

POST request with no body trouble #3503

Open
smokingplaya opened this issue Nov 16, 2024 · 0 comments
Open

POST request with no body trouble #3503

smokingplaya opened this issue Nov 16, 2024 · 0 comments

Comments

@smokingplaya
Copy link

Looking like this issue

Expected Behavior

The request should be processed by actix_web and output something

Current Behavior

If I run a POST request with an empty body, actix_web starts outputting the following:

[2024-11-16T14:23:01Z DEBUG actix_http::h1::decoder] no Content-Length specified for HTTP/1.0 POST request
[2024-11-16T14:23:01Z ERROR actix_http::h1::dispatcher] stream error: request parse error: invalid Header provided

Possible Solution

i have no ideas

Steps to Reproduce (for bugs)

  1. Make a POST endpoint via actix-web
  2. Send POST request to that endpoint with empty body
  3. Profit

Your Environment

  • Rust Version (I.e, output of rustc -V): 1.81.0 (eeb90cda1 2024-09-04)
  • Actix Web Version: 4.9.0
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

1 participant