httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yann Ylavic <ylavic....@gmail.com>
Subject Re: HEAD response's Content-Length stripped when zero
Date Wed, 29 Apr 2015 13:27:30 GMT
On Wed, Apr 29, 2015 at 3:17 PM, Yann Ylavic <ylavic.dev@gmail.com> wrote:
> Index: modules/http/http_filters.c
> ===================================================================
> --- modules/http/http_filters.c    (revision 1676716)
> +++ modules/http/http_filters.c    (working copy)
> @@ -1292,6 +1292,7 @@ AP_CORE_DECLARE_NONSTD(apr_status_t) ap_http_heade
>       * The default (unset) behavior is to squelch the C-L in this case.
>       */
>      if (r->header_only
> +        && (r->clength < 0)

We probably still require:
+        && !r->proxyreq
since mod_proxy does not call ap_set_content_length().

Mime
View raw message