You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by "Roy T. Fielding" <fi...@kiwi.ICS.UCI.EDU> on 1996/11/30 15:16:26 UTC

Bug fix for Allow header output

We need to allow HEAD wherever GET is allowed.
This is my last patch for this morning.

......Roy

Index: http_protocol.c
===================================================================
RCS file: /export/home/cvs/apache/src/http_protocol.c,v
retrieving revision 1.77
diff -c -r1.77 http_protocol.c
*** http_protocol.c	1996/11/25 11:21:59	1.77
--- http_protocol.c	1996/11/30 14:14:23
***************
*** 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" : "",

Re: Bug fix for Allow header output

Posted by Alexei Kosut <ak...@nueva.pvt.k12.ca.us>.
On Sat, 30 Nov 1996, Roy T. Fielding wrote:

> We need to allow HEAD wherever GET is allowed.
> This is my last patch for this morning.

Hmm. Oh yeah... +1

-- 
________________________________________________________________________
Alexei Kosut <ak...@nueva.pvt.k12.ca.us>      The Apache HTTP Server
URL: http://www.nueva.pvt.k12.ca.us/~akosut/   http://www.apache.org/