Skip to content

POST with no POST data returns HTTP 400 #1738

@thedayofcondor

Description

@thedayofcondor

Hi,

I am using v0.14.2

If I do a POST without a body, eg: curl -X POST http://192.168.1.1:8080/download cpp-httplib waits for 5 seconds (presumably waiting to read the body) and then returns HTTP 400.

This is independent from the path having a handler (if a handler is attached to that path, the handler code is never called) or not (in which case I would expect HTTP 404).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions