[cpp-sp COMMIT] /branches/REL_2/apache/mod_shib.cpp
noreply at shibboleth.net
noreply at shibboleth.net
Thu Nov 21 13:43:46 EST 2013
Author: scantor
Date: Thu Nov 21 13:43:46 2013
New Revision: 3879
URL: http://svn.shibboleth.net/view/cpp-sp?rev=3879&view=rev
Log:
https://issues.shibboleth.net/jira/browse/SSPCPP-584
Modified:
branches/REL_2/apache/mod_shib.cpp
Modified: branches/REL_2/apache/mod_shib.cpp
URL: http://svn.shibboleth.net/view/cpp-sp/branches/REL_2/apache/mod_shib.cpp?rev=3879&r1=3878&r2=3879&view=diff
==============================================================================
--- branches/REL_2/apache/mod_shib.cpp (original)
+++ branches/REL_2/apache/mod_shib.cpp Thu Nov 21 13:43:46 2013
@@ -415,7 +415,11 @@
return type ? type : "";
}
long getContentLength() const {
- return m_gotBody ? m_body.length() : m_req->remaining;
+ // Apache won't expose content length until the body's read.
+ if (!m_gotBody) {
+ getRequestBody();
+ }
+ return m_body.length();
}
string getRemoteAddr() const {
string ret = AbstractSPRequest::getRemoteAddr();
More information about the commits
mailing list