On 09/06/22 15:40, Harald Oehlmann wrote:


The switch has been around ever since and it's only function is to force mod_rivet to return a "text/html" message avoiding actual script execution.

     if (private->r->header_only &&
        !private->running_conf->honor_head_requests)
     {
         TclWeb_SetHeaderType(DEFAULT_HEADER_TYPE, private->req);
         TclWeb_PrintHeaders(private->req);
         retval = OK;
         goto sendcleanup;
     }


Thus no meaningful information is returned if HonorHeadRequests is false (default)

  -- Massimo

I would call that a bug. Head should be handled correctly.

Thank you for caring,
Harald



In hindsight it's probably so. We are thinking quite alike, before I read your message I was considering to open a bug in order to document either the removal or the change of the default for boolean honor_head_request

I remember the configuration directive that allowed to have real HEAD responses was one of my earliest contributions to mod_rivet in 2007 or 2008. I needed to have meaningful data from a HEAD request but as a newcomer I didn't want to change abruptly the original behavior of the code in branch 1_0 (never released) assuming there was some good reason for it. I have some faint memory that it had been chosen to shunt code execution for HEAD requests for performance reasons

more thoughts?

 -- Massimo


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to