It's request_rec which represents http Request not Response. look into this 
data structure for the content-type field.


________________________________
 From: Eric Covener <cove...@gmail.com>
To: modules-dev@httpd.apache.org; Nce Rt <nce...@yahoo.com> 
Sent: Wednesday, March 6, 2013 2:50 PM
Subject: Re: some key fields of request_rec are null
 
On Wed, Mar 6, 2013 at 4:21 PM, Nce Rt <nce...@yahoo.com> wrote:
>
>
> A custom handler which is registered to run APR_HOOK_FIRST has these fields 
> null when processing http request:
>      r->content_type, r->parsed_uri.scheme

r->content_type is not related to any request header -- it's the
response content type.  It won't be set early, before a response is
generated.

Reply via email to