fielding    96/12/01 06:33:50

  Modified:    src       http_request.c
  Log:
  On an internal redirect (particularly for an ErrorDocument handler),
  store the original method in the subprocess environment so that it
  will be noted as REDIRECT_REQUEST_METHOD for any subprocess script.
  This is to avoid serving a full response on a HEAD request that has
  been redirected to a special handler.  [Roy thinks that this would be
  better just redirecting as a HEAD request, but this fix is probably needed
  for other methods anyway.]
  
  Submitted by: Rob Hartill
  Reviewed by: Brian Behlendorf, Chuck Murcko, Roy Fielding
  
  Revision  Changes    Path
  1.29      +1 -0      apache/src/http_request.c
  
  Index: http_request.c
  ===================================================================
  RCS file: /export/home/cvs/apache/src/http_request.c,v
  retrieving revision 1.28
  retrieving revision 1.29
  diff -C3 -r1.28 -r1.29
  *** http_request.c    1996/11/18 19:40:48     1.28
  --- http_request.c    1996/12/01 14:33:49     1.29
  ***************
  *** 738,743 ****
  --- 738,744 ----
            /* This redirect needs to be a GET no matter what the original
             * method was.
             */
  +         table_set(r->subprocess_env, "REQUEST_METHOD", r->method);
            r->method = pstrdup(r->pool, "GET");
            r->method_number = M_GET;
            internal_redirect (custom_response, r);
  
  
  

Reply via email to