RE: Content size headers changed by squid?

From: Jason Hihn <jhihn@dont-contact.us>
Date: Fri, 21 Mar 2003 09:03:14 -0500

> -----Original Message-----
> From: hno@marasystems.com [mailto:hno@marasystems.com]On Behalf Of
> Henrik Nordstrom
> Sent: Thursday, March 20, 2003 4:58 PM
> To: Jason Hihn
> Cc: squid-dev@squid-cache.org
> Subject: Re: Content size headers changed by squid?
>
>
> Jason Hihn wrote:
>
> > These files are only a few Kbytes in size, so it can't be a
> memory thing.
> > From what I can tell, it looks like squid is changing the content-length
> > header.
>
> Squid does not change content-length headers, but it does enforce the
> length if you have set one.

What do you mean by 'enforce'? Truncate?

> Some other proxies allow the response to be larger than what is
> indicated by the content-length header.
>
> When writing servers on WIN32 you need to be careful about reading files
> in ascii or binary mode. When reading files in ascii mode the read
> length may be different than the file length due to conversion of line
> endings.

Thanks for the help! I'm looking into it!
Received on Fri Mar 21 2003 - 07:03:20 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:19:34 MST