From: Scott Cantor Date: Sat, 15 Dec 2007 23:35:58 +0000 (+0000) Subject: Avoid built-in behavior for server error responses. X-Git-Tag: 2.0-rc1~34 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-sp.git;a=commitdiff_plain;h=a899dfb25b3e4e94a17297e126d5bc36c600558b Avoid built-in behavior for server error responses. --- diff --git a/apache/mod_apache.cpp b/apache/mod_apache.cpp index 421a7ec..9ba9f9c 100644 --- a/apache/mod_apache.cpp +++ b/apache/mod_apache.cpp @@ -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) {