Skip to content

Commit 2dd22ea

Browse files
Synchronize changes from 1.6 master branch [ci skip]
e5e0a68 Fix: EHS Print debug warning for unsupported chunked encoding only in debug mode (PR #3939)
2 parents 96019a9 + e5e0a68 commit 2dd22ea

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

vendor/ehs/httprequest.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,9 @@ HttpRequest::HttpParseStates HttpRequest::ParseData ( std::string & irsData ///<
464464
if ( sName == "Transfer-Encoding" &&
465465
sValue == "chunked" ) {
466466

467+
#ifdef EHS_DEBUG
467468
fprintf ( stderr, "EHS DOES NOT SUPPORT CHUNKED ENCODING. Send an email to [email protected] and tell him you want chunked encoding (or send a patch)\n" );
469+
#endif
468470
nCurrentHttpParseState = HTTPPARSESTATE_INVALIDREQUEST;
469471

470472
}

0 commit comments

Comments
 (0)