Re: frontpage patch for client_side.c in squid 2.2 stable 5

From: Wayne Smith <wcsmith@dont-contact.us>
Date: Tue, 11 Jul 2000 13:22:28 -0400

Duane

That did the trick! No more compile errors! Thanks!

Wayne

----- Original Message -----
From: "Duane Wessels" <wessels@ircache.net>
To: "Wayne Smith" <wcsmith@myrealbox.com>
Cc: <squid-users@ircache.net>
Sent: Tuesday, July 11, 2000 12:59 PM
Subject: RE: frontpage patch for client_side.c in squid 2.2 stable 5

<<SNIP >>
> static int
> clientCheckContentLength(request_t * r)
> {
> int cl = httpHeaderGetInt(&r->header, HDR_CONTENT_LENGTH);
> /* We only require a content-length for "upload" methods */
> switch (r->method) {
> case METHOD_PUT:
> case METHOD_POST:
> /* PUT/POST requires a request entity */
> return (cl >= 0);
> case METHOD_GET:
> case METHOD_HEAD:
> /* We do not want to see a request entity on GET/HEAD requests */
> return (cl <= 0);
> default:
> /* For other types of requests we don't care */
> return 1;
> }
> /* NOT REACHED */
> }
Received on Tue Jul 11 2000 - 11:24:54 MDT

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