Avoid built-in behavior for server error responses.
authorScott Cantor <cantor.2@osu.edu>
Sat, 15 Dec 2007 23:35:58 +0000 (23:35 +0000)
committerScott Cantor <cantor.2@osu.edu>
Sat, 15 Dec 2007 23:35:58 +0000 (23:35 +0000)
apache/mod_apache.cpp

index 421a7ec..9ba9f9c 100644 (file)
@@ -505,8 +505,11 @@ public:
         in.read(buf,1024);
         ap_rwrite(buf,in.gcount(),m_req);
     }
-    if (status!=XMLTOOLING_HTTP_STATUS_OK)
-        return m_req->status = status;
+    if (status != XMLTOOLING_HTTP_STATUS_OK) {
+        m_req->status = status;
+        if (status != XMLTOOLING_HTTP_STATUS_ERROR)
+            return status;
+    }
     return DONE;
   }
   long sendRedirect(const char* url) {