projects
/
shibboleth
/
cpp-sp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8cd71bd
)
https://issues.shibboleth.net/jira/browse/SSPCPP-584
author
Scott Cantor
<cantor.2@osu.edu>
Thu, 21 Nov 2013 18:43:46 +0000
(18:43 +0000)
committer
Scott Cantor
<cantor.2@osu.edu>
Thu, 21 Nov 2013 18:43:46 +0000
(18:43 +0000)
apache/mod_shib.cpp
patch
|
blob
|
history
diff --git
a/apache/mod_shib.cpp
b/apache/mod_shib.cpp
index
9cf6ab8
..
311297b
100644
(file)
--- a/
apache/mod_shib.cpp
+++ b/
apache/mod_shib.cpp
@@
-415,7
+415,11
@@
public:
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();