ASF Bugzilla – Attachment 16741 Details for
Bug 18757
Content-Length is removed from replies to HEAD requests
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch #3
proxy_C-L.patch (text/plain), 815 bytes, created by
Greg Ames
on 2005-10-19 00:00:46 UTC
(
hide
)
Description:
patch #3
Filename:
MIME Type:
Creator:
Greg Ames
Created:
2005-10-19 00:00:46 UTC
Size:
815 bytes
patch
obsolete
>Index: server/protocol.c >=================================================================== >--- server/protocol.c (revision 326257) >+++ server/protocol.c (working copy) >@@ -1302,7 +1302,13 @@ > * We can only set a C-L in the response header if we haven't already > * sent any buckets on to the next output filter for this request. > */ >- if (ctx->data_sent == 0 && eos) { >+ if (ctx->data_sent == 0 && eos && >+ /* don't whack the C-L if it has already been set for a HEAD >+ * by something like proxy. the brigade only has an EOS bucket >+ * in this case, making r->bytes_sent zero. >+ */ >+ !(r->header_only && r->bytes_sent == 0 && >+ apr_table_get(r->headers_out, "Content-Length"))) { > ap_set_content_length(r, r->bytes_sent); > } >
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 18757
:
9298
|
12893
| 16741