Wasn't returning from errors during POST read.
authorcantor <cantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Thu, 10 May 2007 17:39:58 +0000 (17:39 +0000)
committercantor <cantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Thu, 10 May 2007 17:39:58 +0000 (17:39 +0000)
git-svn-id: https://svn.middleware.georgetown.edu/cpp-sp/trunk@2245 cb58f699-b61c-0410-a6fe-9272a202ed29

apache/mod_apache.cpp

index 83ef310..f8e214c 100644 (file)
@@ -326,13 +326,15 @@ public:
     if (m_gotBody || m_req->method_number==M_GET)
         return m_body.c_str();
     // Read the posted data
-    if (ap_setup_client_block(m_req, REQUEST_CHUNKED_DECHUNK)) {
+    if (ap_setup_client_block(m_req, REQUEST_CHUNKED_DECHUNK) != OK) {
         m_gotBody=true;
         log(SPError, "Apache function (setup_client_block) failed while reading request body.");
+        return m_body.c_str();
     }
     if (!ap_should_client_block(m_req)) {
         m_gotBody=true;
         log(SPError, "Apache function (should_client_block) failed while reading request body.");
+        return m_body.c_str();
     }
     if (m_req->remaining > 1024*1024)
         throw opensaml::SecurityPolicyException("Blocked request body larger than 1M size limit.");