← 返回首页
Fixes get pending when body is provided. by etr · Pull Request #166 · etr/libhttpserver · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

Fixes get pending when body is provided.#166

Merged
etr merged 1 commit into
masterfrom
fix_get_failing_body
Nov 6, 2019
Merged

Fixes get pending when body is provided.#166
etr merged 1 commit into
masterfrom
fix_get_failing_body

Conversation

etr commented Nov 6, 2019

Copy link
Copy Markdown
Owner

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 added the bug Confirmed bugs or reports that are very likely to be bugs. label Nov 6, 2019
etr self-assigned this Nov 6, 2019
etr added the api Related to libhttpserver's public APIs. label Nov 6, 2019
etr merged commit c742465 into master Nov 6, 2019
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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

Footer

© 2026 GitHub, Inc.