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

Connection closed when both http headers transfer-encoding as chunked and content-length sent together #770

Open
naveengowda0623 opened this issue Jun 12, 2024 · 0 comments

Comments

@naveengowda0623
Copy link

naveengowda0623 commented Jun 12, 2024

Expected behaviour

Mountebank source code should accept the request connection and send response appropriately

Actual behaviour

Mountebank connection gets closed even before it reaches the actual imposters

Steps to reproduce

Send http/https POST request with transfer-encoding: "chunked" and content-length: null

Software versions used

OS         : Mac OS and Linux
mountebank : 2.8.1
node.js    :16.15.0
  (only if installed via npm)
Installation method :npm
  (npm, zip, tar, pkg, deb, rpm)

Log contents in mb.log when running mb --loglevel debug

debug: [https:2561 OCV] ::1:51949 ESTABLISHED
debug: [https:2561 OCV] ::1:51949 CLOSED
debug: [https:2561 OCV] ::1:52035 ESTABLISHED
debug: [https:2561 OCV] ::1:52036 ESTABLISHED
debug: [https:2561 OCV] ::1:52035 CLOSED
debug: [https:2561 OCV] ::1:52036 CLOSED
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