Skip to content

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

@naveengowda0623

Description

@naveengowda0623

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions