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 Thu, 22 Aug 2002 15:02:49 GMT
ianh        2002/08/22 08:02:49

  Modified:    modules/proxy proxy_http.c
  Log:
  Add A warning when servers don't set their status line
  
  Revision  Changes    Path
  1.160     +7 -0      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.159
  retrieving revision 1.160
  diff -u -r1.159 -r1.160
  --- proxy_http.c	21 Aug 2002 16:01:15 -0000	1.159
  +++ proxy_http.c	22 Aug 2002 15:02:49 -0000	1.160
  @@ -737,11 +737,18 @@
               backasswards = 0;
   
               keepchar = buffer[12];
  +            if (keepchar == '\0') {
  +                ap_log_error(APLOG_MARK, APLOG_WARNING, 0,
  +                             r->server, "proxy: bad HTTP/%d.%d status line "
  +                             "returned by %s (%s)", major, minor, r->uri,
  +                             r->method);
  +            }
               buffer[12] = '\0';
               r->status = atoi(&buffer[9]);
   
               buffer[12] = keepchar;
               r->status_line = apr_pstrdup(p, &buffer[9]);
  +            
   
               /* read the headers. */
               /* N.B. for HTTP/1.0 clients, we have to fold line-wrapped headers*/
  
  
  

Mime
View raw message