httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rob Hartill <hart...@ooo.lanl.gov>
Subject Re: change LF to CRLF ?
Date Mon, 20 Mar 1995 16:54:09 GMT
> 
> Anyway, I don't see why you would want to change stream.c.

You're right, I blamed the wrong part of the code for eating
up the CRs,

The offending bit of code wasn't in stream.c, it was in
scan_script_header()

	if (p > 0 && w[p-1] == '\n')
	{
	    if (p > 1 && w[p-2] == '\015') w[p-2] = '\0'; 
	    else w[p-1] = '\0';
	}
        if(w[0] == '\0') return is_url(location);


should be,

	if (p > 0 && w[p-1] == LF)
	    w[p-1] = '\0';

        if(!w[0] || (p>0 && w[0] == CR && !w[1])) return is_url(location);


I suppose. 

If you'd stuck to the CR LF syntax you dislike, it would have been easier
to locate :-)


rob h

Mime
View raw message