Skip to content

Commit

Permalink
Check in 1.3.4 with a bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlst committed Aug 20, 2014
1 parent c7e5bc2 commit 9024559
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/http/httpsession.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1600,7 +1600,6 @@ int HttpSession::buildErrorResponse( const char * errMsg )
int len = HttpStatusCode::getBodyLen( errCode );
m_response.setContentLen( len );
m_response.parseAdd( HttpStatusCode::getHeaders( errCode ), HttpStatusCode::getHeadersLen( errCode ));
sendRespHeaders();

int ret = appendDynBody( pHtml, len );
if ( ret < len )
Expand Down Expand Up @@ -2324,6 +2323,7 @@ int HttpSession::setupGzipBuf()
LOG_D(( getLogger(),
"[%s] setupGzipBuf() begin GZIP stream.\n",
getLogId() ));
m_response.setContentLen( LSI_RESP_BODY_SIZE_UNKNOWN );
m_response.addGzipEncodingHeader();
m_request.orGzip( UPSTREAM_GZIP );
return 0;
Expand Down

0 comments on commit 9024559

Please sign in to comment.