Closed IYinxf closed 6 months ago
@IYinxf Thanks for your feed back.
I think users should not set the Content-Length
header themselves. The framework will set this header based on the actual size of the body (even after the framework automatically compresses the body). No checks are performed for performance reasons.
Describe the bug Duplicate http header "content-length". I need to send the file length to the front end using "content-length", but the content is empty. This will make pdf.js read the range required for PDF file parsing.
To Reproduce Steps to reproduce the behavior:
auto resp = HttpResponse::newHttpResponse();resp->addHeader("content-length", not_zero);
without any http body;In the second step, should we determine whether there is no "content-length" in the member headers_?
Expected behavior only once "content-length" in http headers.
Screenshots If applicable, add screenshots to help explain your problem.
Desktop :