-
Notifications
You must be signed in to change notification settings - Fork 1.2k
KTOR-4379 Validate body size equals Content-Length #3069
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
Conversation
4721952 to
a36b62c
Compare
|
Please check CI |
|
@rsinukov, thanks. done |
|
JS and Native builds are still failing |
1a4b288 to
2996cbd
Compare
|
@rsinukov, thanks. Updated |
rsinukov
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but minor comments
|
|
||
| if (!upgraded && event is LastHttpContent) { | ||
| current.close() | ||
| checkCurrentLengthAndClose() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't it redundant, since this check is in finally block?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nope: the next message can be a new channel in the pipeline or upgrade
| current?.close() | ||
| current = event | ||
| is ChannelEvent -> { | ||
| checkCurrentLengthAndClose() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
Fix KTOR-4379