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

Properly handle requests with headers consisting of multiple packets #281

Merged
merged 1 commit into from May 21, 2016

Conversation

buger
Copy link
Owner

@buger buger commented May 21, 2016

@@ -170,6 +215,10 @@ func (t *TCPMessage) IsFinished() bool {
} else {
if enc := proto.Header(payload, []byte("Transfer-Encoding")); len(enc) == 0 {
return true
} else {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary)

@buger buger merged commit d944ac6 into master May 21, 2016
@slimus slimus deleted the compound-request-detection branch June 3, 2020 04:09
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

Successfully merging this pull request may close these issues.

None yet

2 participants