Skip to content

Conversation

derklaro
Copy link
Member

@derklaro derklaro commented Oct 9, 2024

When the client sends a bad request to the server which cannot be decoded, for example containing an ascii control sequence, the connection is just closed without a proper response. Now the server returns a 400 - Bad Request response in these cases. The handling of the failure response send has been moved into a util method to properly set the connection: close and content-length: 0 headers every time.

@derklaro derklaro requested a review from 0utplay October 9, 2024 20:04
@derklaro derklaro self-assigned this Oct 9, 2024
Copy link

github-actions bot commented Oct 9, 2024

Test Results

30 tests  +1   30 ✅ +1   7s ⏱️ -1s
10 suites +1    0 💤 ±0 
10 files   +1    0 ❌ ±0 

Results for commit 5a65bf5. ± Comparison against base commit d279da2.

♻️ This comment has been updated with latest results.

@0utplay 0utplay merged commit 72b7a4d into main Oct 13, 2024
3 checks passed
@0utplay 0utplay deleted the better-decode-fail-handling branch October 13, 2024 07:11
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.

2 participants