Skip to content

Check content body for all request types, not only for POST, PUT, PATCH #21

@maxsivkov

Description

@maxsivkov

Hello!

Because of RFC 7230

The presence of a message body in a request is signaled by a
Content-Length or Transfer-Encoding header field. Request message
framing is independent of method semantics, even if the method does
not define any use for a message body.

I think clammit should perform virus checks for all method types, not only for POST, PUT, PATCH.

This could be easily implemented by removing POST, PUT, PATCH checks and just comparing Content-Length and/or actual body size to 0.

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