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

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

Open
FGasper opened this issue Mar 31, 2017 · 1 comment

Comments

@FGasper
Copy link

FGasper commented Mar 31, 2017

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?

@FGasper
Copy link
Author

FGasper commented Mar 31, 2017

Related to: libwww-perl/libwww-perl#86

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