You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by wr...@apache.org on 2001/08/25 19:48:52 UTC

cvs commit: httpd-2.0/modules/http http_request.c

wrowe       01/08/25 10:48:52

  Modified:    modules/http http_request.c
  Log:
    Downgrade must occur before we attempt to TRACE, e.g., for clients with
    broken chunking.
  
  Revision  Changes    Path
  1.108     +4 -4      httpd-2.0/modules/http/http_request.c
  
  Index: http_request.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/http/http_request.c,v
  retrieving revision 1.107
  retrieving revision 1.108
  diff -u -r1.107 -r1.108
  --- http_request.c	2001/08/23 21:05:41	1.107
  +++ http_request.c	2001/08/25 17:48:52	1.108
  @@ -263,6 +263,10 @@
           return;
       }
   
  +    if (r->proto_num > HTTP_VERSION(1,0) && apr_table_get(r->subprocess_env, "downgrade-1.0")) {
  +        r->proto_num = HTTP_VERSION(1,0);
  +    }
  +
       if (!r->proxyreq) {
   	/*
   	 * We don't want TRACE to run through the normal handler set, we
  @@ -275,10 +279,6 @@
   		ap_finalize_request_protocol(r);
   	    return;
   	}
  -    }
  -
  -    if (r->proto_num > HTTP_VERSION(1,0) && apr_table_get(r->subprocess_env, "downgrade-1.0")) {
  -        r->proto_num = HTTP_VERSION(1,0);
       }
   
       /*