You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Randy Terbush <ra...@zyzzyva.com> on 1996/12/01 06:28:25 UTC
Re: Bug fix for Allow header output
+1
> 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" : "",