On Sun, May 15, 2005 at 06:08:42PM +0200, David N. Welton wrote:
> > I have a directory with ErrorDocument 404 /feed/holder.rvt in .htaccess .
> > When I get a GET request, holder.rvt is launched and works fine.
> > But HEAD request gets 404 Not found response.
> > Is it an apache problem or rivet-specific? What to do?
> Looks as if it may indeed be a Rivet thing. I see this in the code:
>
> r->allowed |= (1 << M_GET);
> r->allowed |= (1 << M_POST);
> if (r->method_number != M_GET && r->method_number != M_POST) {
> retval = DECLINED;
> goto sendcleanup;
> }
M_HEAD is not defined in apache includes.
/* Methods recognized (but not necessarily handled) by the server.
* These constants are used in bit shifting masks of size int, so it is
* unsafe to have more methods than bits in an int. HEAD == M_GET.
*/
is noticed there.
But the behaviour of GET and HEAD is definitely different.
> You could try adding M_HEAD in there, and see if that fixes things.
> I'll try myself when I get a free moment...
No wonder it fails to compile.
--
DtZ (homepage:http://xepb.ru/dtz ,ICQ UIN:5132840,Fido: 2:5020/730)
jabber://[EMAIL PROTECTED] //HPG
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]