httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From grega...@apache.org
Subject cvs commit: httpd-2.0/server core.c
Date Thu, 25 Apr 2002 20:51:49 GMT
gregames    02/04/25 13:51:49

  Modified:    server   core.c
  Log:
  remove a goto
  
  Revision  Changes    Path
  1.172     +10 -12    httpd-2.0/server/core.c
  
  Index: core.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/server/core.c,v
  retrieving revision 1.171
  retrieving revision 1.172
  diff -u -r1.171 -r1.172
  --- core.c	24 Apr 2002 14:31:28 -0000	1.171
  +++ core.c	25 Apr 2002 20:51:49 -0000	1.172
  @@ -3168,7 +3168,16 @@
       }
   
       if (r->method_number != M_GET && r->method_number != M_POST) {
  -        goto unusual_method;
  +        if (r->method_number == M_INVALID) {
  +            ap_log_rerror(APLOG_MARK, APLOG_NOERRNO|APLOG_ERR, 0, r,
  +                          "Invalid method in request %s", r->the_request);
  +            return HTTP_NOT_IMPLEMENTED;
  +        }
  +
  +        if (r->method_number == M_OPTIONS) {
  +            return ap_send_http_options(r);
  +        }
  +        return HTTP_METHOD_NOT_ALLOWED;
       }
   
       if (r->finfo.filetype == 0) {
  @@ -3239,17 +3248,6 @@
   
       return ap_pass_brigade(r->output_filters, bb);
   
  -unusual_method:
  -    if (r->method_number == M_INVALID) {
  -        ap_log_rerror(APLOG_MARK, APLOG_NOERRNO|APLOG_ERR, 0, r,
  -                      "Invalid method in request %s", r->the_request);
  -        return HTTP_NOT_IMPLEMENTED;
  -    }
  -
  -    if (r->method_number == M_OPTIONS) {
  -        return ap_send_http_options(r);
  -    }
  -    return HTTP_METHOD_NOT_ALLOWED;
   }
   
   static int net_time_filter(ap_filter_t *f, apr_bucket_brigade *b,
  
  
  

Mime
View raw message