ASF Bugzilla – Attachment 32204 Details for
Bug 57198
mod_proxy_fcgi (more) wrong behavior with 304
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
proposed patch
httpd-trunk-fcgi-body.patch (text/plain), 2.19 KB, created by
jkaluza
on 2014-11-12 07:13:44 UTC
(
hide
)
Description:
proposed patch
Filename:
MIME Type:
Creator:
jkaluza
Created:
2014-11-12 07:13:44 UTC
Size:
2.19 KB
patch
obsolete
>diff --git a/modules/proxy/mod_proxy_fcgi.c b/modules/proxy/mod_proxy_fcgi.c >index e2fb59c..512140b 100644 >--- a/modules/proxy/mod_proxy_fcgi.c >+++ b/modules/proxy/mod_proxy_fcgi.c >@@ -368,7 +368,7 @@ static apr_status_t dispatch(proxy_conn_rec *conn, proxy_dir_conf *conf, > const char **err) > { > apr_bucket_brigade *ib, *ob; >- int seen_end_of_headers = 0, done = 0; >+ int seen_end_of_headers = 0, done = 0, ignore_body = 0; > apr_status_t rv = APR_SUCCESS; > int script_error_status = HTTP_OK; > conn_rec *c = r->connection; >@@ -577,9 +577,16 @@ recv_again: > APR_BRIGADE_INSERT_TAIL(ob, tmp_b); > r->status = status; > ap_pass_brigade(r->output_filters, ob); >- ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r, APLOGNO(01070) >- "Error parsing script headers"); >- rv = APR_EINVAL; >+ if (status == HTTP_NOT_MODIFIED) { >+ /* The 304 response MUST NOT contain >+ * a message-body, ignore it. */ >+ ignore_body = 1; >+ } >+ else { >+ ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r, APLOGNO(01070) >+ "Error parsing script headers"); >+ rv = APR_EINVAL; >+ } > break; > } > >@@ -626,7 +633,7 @@ recv_again: > * but that could be a huge amount of data; so we pass > * along smaller chunks > */ >- if (script_error_status == HTTP_OK) { >+ if (script_error_status == HTTP_OK && !ignore_body) { > rv = ap_pass_brigade(r->output_filters, ob); > if (rv != APR_SUCCESS) { > *err = "passing brigade to output filters";
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 57198
: 32204