8000 HEAD request and Content-Lenght · Issue #556 · facebook/proxygen · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
< 8000 header class="HeaderMktg header-logged-out js-details-container js-header Details f4 py-3" role="banner" data-is-top="true" data-color-mode=light data-light-theme=light data-dark-theme=dark>

Navigation Menu

Sign in
Appearance settings

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

Provide feedback

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

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
HEAD request and Content-Lenght #556
Open
@rafalwijata

Description

@rafalwijata

Hi, I encountered this funny issue while using proxygen as server.
On HEAD request I'm suppose to set Content-Lenght to value it would be and send no body.
So I do,
...
builder->header(proxygen::HTTP_HEADER_CONTENT_LENGTH, std::to_string(len));
builder->sendWithEOM();
however the latter sendWithEOM() (calls send()) resets the Content-Lenght back to zero.
I workarounded that by sending empty chunk first before sendWithEOM().

But I wonder if this is proxygen ResponseBuilder issue or I'm doing it wrong?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Rel 2CF4 ationships

None yet

Development

No branches or pull requests

Issue actions

    0