httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian J. France" <l...@firehawksystems.com>
Subject Re: ap_custom_response content type 'text/xml'
Date Fri, 27 Jun 2008 15:45:21 GMT

On Jun 27, 2008, at 11:04 AM, Kiffin Gish wrote:
> Sorry to keep bugging you, but where does this -1 belong?

In my example there was this line:

/* split off after value */
apr_bucket_split(b, end - ct_header + 14 + 1);

+ 14 is to skip the "Content-Type: "
+ 1 is to skip the "\r"

This is where you want to change that to -1 instead to keep the \n (or  
the ; if you scan for ; instead of ;).

Brian


Mime
View raw message