You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by Roy Fielding <fi...@hyperreal.com> on 1996/12/01 06:34:13 UTC

cvs commit: apache/src http_protocol.c

fielding    96/11/30 21:34:12

  Modified:    src       http_protocol.c
  Log:
  We need to allow HEAD wherever GET is allowed.
  Reviewed by: Alexei Kosut, Randy Terbush
  
  Revision  Changes    Path
  1.78      +1 -1      apache/src/http_protocol.c
  
  Index: http_protocol.c
  ===================================================================
  RCS file: /export/home/cvs/apache/src/http_protocol.c,v
  retrieving revision 1.77
  retrieving revision 1.78
  diff -C3 -r1.77 -r1.78
  *** http_protocol.c	1996/11/25 11:21:59	1.77
  --- http_protocol.c	1996/12/01 05:34:10	1.78
  ***************
  *** 909,915 ****
    {
        int allowed = r->allowed;
    
  !     return 2 + pstrcat(r->pool, (allowed & (1 << M_GET)) ? ", GET" : "",
    		       (allowed & (1 << M_POST)) ? ", POST" : "",
    		       (allowed & (1 << M_PUT)) ? ", PUT" : "",
    		       (allowed & (1 << M_DELETE)) ? ", DELETE" : "",
  --- 909,915 ----
    {
        int allowed = r->allowed;
    
  !     return 2 + pstrcat(r->pool, (allowed & (1 << M_GET)) ? ", GET, HEAD" : "",
    		       (allowed & (1 << M_POST)) ? ", POST" : "",
    		       (allowed & (1 << M_PUT)) ? ", PUT" : "",
    		       (allowed & (1 << M_DELETE)) ? ", DELETE" : "",