[Catalyst] p-static-simple line-ending patch

A. Pagaltzis pagaltzis at gmx.de
Thu Feb 23 17:51:31 CET 2006


* Carl Franks <fireartist at gmail.com> [2006-02-23 16:25]:
>I've been having problems serving static files relating to newlines.
>
>I'm on windows. When I serve css files with unix line-endings,
>firefox cuts off the end of the file. I'm guessing it's to do
>with whether a line-ending counts as 1 or 2 bytes.
>
>I don't know what this'll do for other platforms, but it does
>solve the error I'm seeing. It could maybe be expanded for some
>other types (xml?), but it's a start.

This smells very wrong to me. I’ve never had any issues with
either type of line ending in any other scenario. I suspect that
what’s really happening is that the Content-Length header of the
response, which gets set a few lines above code you patched,
disagrees with the actual length of the body. This is just a
hunch though, and I can’t test it where I am right now.

Regards,
-- 
Aristotle Pagaltzis // <http://plasmasturm.org/>



More information about the Catalyst mailing list