Skip to content
This repository has been archived by the owner on Apr 15, 2022. It is now read-only.

Commit

Permalink
compute body length in the proxy after a filter plugin is applied
Browse files Browse the repository at this point in the history
  • Loading branch information
Emmanuel Benazera committed Mar 18, 2012
1 parent 866bb28 commit bcd277c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/proxy/seeks_proxy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1753,6 +1753,7 @@ namespace sp
{
csp->_content_length = (size_t)(csp->_iob._eod - csp->_iob._cur);
}
else csp->_content_length = strlen(p); // in case content length in undefined.
if (SP_ERR_OK != parsers::update_server_headers(csp))
{
errlog::log_error(LOG_LEVEL_FATAL,
Expand Down

0 comments on commit bcd277c

Please sign in to comment.