Skip to content

read_entity_body() should warn() if Content-Length is less than the size of the payload. #43

Open
@FGasper

Description

@FGasper

https://tools.ietf.org/html/rfc2616#page-34

The last paragraph of RFC 2616/4.4 stipulates that a notification (warn() in Perl, ISTM) should be given when the payload length doesn’t match the Content-Length header.

Right now there’s no such warn() happening … maybe do a recv()/MSG_PEEK to see if there is more to read on the socket, then warn() if so?

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