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

Fixes get pending when body is provided. #166

Merged
merged 1 commit into from
Nov 6, 2019
Merged

Conversation

etr
Copy link
Owner

@etr etr commented Nov 6, 2019

Identify the Bug

As notified in: #165

The webserver hangs the request without terminating if the request is a body-less one (e.g. GET-like) but provides a body.

Description of the Change

This change allows the webserver to process the request without failing.

Alternate Designs

The linked pull-request presents a design that actively parses and processes the body passed in input. This implementation chooses to discard it instead.

Possible Drawbacks

Main drawback of this choice is not to process the body to adhere to a strict semantic (GET not providing a body). This limits use-cases that might require a body to be provided on GET requests. See motivation in the thread here: #165

Verification Process

Unit and Integration tests

Release Notes

Fixed bug that made the webserver hang the request without terminating if the request was a body-less one (e.g. GET-like) but provided a body.

Body is ignored on get (and get-like) operations.
@etr etr added the bug Confirmed bugs or reports that are very likely to be bugs. label Nov 6, 2019
@etr etr self-assigned this Nov 6, 2019
@etr etr added the api Related to libhttpserver's public APIs. label Nov 6, 2019
@etr etr merged commit c742465 into master Nov 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Related to libhttpserver's public APIs. bug Confirmed bugs or reports that are very likely to be bugs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant