httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From i...@apache.org
Subject cvs commit: httpd-2.0/modules/proxy proxy_http.c
Date Wed, 21 Aug 2002 16:01:16 GMT
ianh        2002/08/21 09:01:15

  Modified:    .        CHANGES
               modules/proxy proxy_http.c
  Log:
  fix the case when a server doesn't send a response string
  
  Submitted by:	Brett Hutley <brett@hutley.net> J.D. Silvester <jsilves@uwo.ca>
  
  Revision  Changes    Path
  1.891     +2 -0      httpd-2.0/CHANGES
  
  Index: CHANGES
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/CHANGES,v
  retrieving revision 1.890
  retrieving revision 1.891
  diff -u -r1.890 -r1.891
  --- CHANGES	20 Aug 2002 18:32:09 -0000	1.890
  +++ CHANGES	21 Aug 2002 16:01:14 -0000	1.891
  @@ -1,4 +1,6 @@
   Changes with Apache 2.0.41
  +  *) mod-proxy: handle proxied responses with no status lines
  +     [JD Silvester <jsilves@uwo.ca>, Brett Huttley <brett@huttley.net>]
   
     *) Fix bug where environment or command line arguments containing 
        non-ASCII-7 characters would cause the Win32 child process creation
  
  
  
  1.159     +3 -1      httpd-2.0/modules/proxy/proxy_http.c
  
  Index: proxy_http.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/proxy/proxy_http.c,v
  retrieving revision 1.158
  retrieving revision 1.159
  diff -u -r1.158 -r1.159
  --- proxy_http.c	8 Aug 2002 17:59:18 -0000	1.158
  +++ proxy_http.c	21 Aug 2002 16:01:15 -0000	1.159
  @@ -676,6 +676,7 @@
                                               char *server_portstr) {
       conn_rec *c = r->connection;
       char buffer[HUGE_STRING_LEN];
  +    char keepchar;
       request_rec *rp;
       apr_bucket *e;
       int len, backasswards;
  @@ -735,10 +736,11 @@
               }
               backasswards = 0;
   
  +            keepchar = buffer[12];
               buffer[12] = '\0';
               r->status = atoi(&buffer[9]);
   
  -            buffer[12] = ' ';
  +            buffer[12] = keepchar;
               r->status_line = apr_pstrdup(p, &buffer[9]);
   
               /* read the headers. */
  
  
  

Mime
View raw message