Skip to content
This repository has been archived by the owner on Jun 30, 2021. It is now read-only.

Commit

Permalink
Regression from commit 67ed0bc
Browse files Browse the repository at this point in the history
Pull request for issue #201, this will restore functionality to some clients
  • Loading branch information
Ultima1252 committed Apr 2, 2016
1 parent 70b68d4 commit c96c51e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions evhtp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1672,12 +1672,10 @@ _evhtp_create_reply(evhtp_request_t * request, evhtp_res code) {
evhtp_header_new("Connection", "close", 0, 0));
}

#if 0
if (!out_len && !evhtp_header_find(request->headers_out, "Content-Length")) {
if (!evhtp_header_find(request->headers_out, "Content-Length")) {
evhtp_headers_add_header(request->headers_out,
evhtp_header_new("Content-Length", "0", 0, 0));
}
#endif

break;
case EVHTP_PROTO_10:
Expand Down

0 comments on commit c96c51e

Please sign in to comment.