]> git.pld-linux.org Git - packages/squid.git/blame - squid-2.5.STABLE1-request_entity.patch
4560a1f09fec829e1c76bce436d464f3 squid-2.5.STABLE1-acl_leak.patch
[packages/squid.git] / squid-2.5.STABLE1-request_entity.patch
CommitLineData
d3969417
AM
1Index: squid/src/cf.data.pre
2diff -c squid/src/cf.data.pre:1.245.2.30 squid/src/cf.data.pre:1.245.2.31
3*** squid/src/cf.data.pre:1.245.2.30 Mon Oct 7 22:29:40 2002
4--- squid/src/cf.data.pre Sun Nov 10 07:33:06 2002
5***************
6*** 3724,3729 ****
7--- 3724,3742 ----
8 You can add up to 20 additional "extension" methods here.
9 DOC_END
10
11+ NAME: request_entities
12+ TYPE: onoff
13+ LOC: Config.onoff.request_entities
14+ DEFAULT: off
15+ DOC_START
16+ Squid defaults to deny GET and HEAD requests with request entities,
17+ as the meaning of such requests are undefined in the HTTP standard
18+ even if not explicitly forbidden.
19+
20+ Set this directive to on if you have clients which insists
21+ on sending request entities in GET or HEAD requests.
22+ DOC_END
23+
24 NAME: high_response_time_warning
25 TYPE: int
26 COMMENT: (msec)
27Index: squid/src/client_side.c
28diff -c squid/src/client_side.c:1.561.2.22 squid/src/client_side.c:1.561.2.23
29*** squid/src/client_side.c:1.561.2.22 Thu Oct 3 00:44:06 2002
30--- squid/src/client_side.c Sun Nov 10 07:33:06 2002
31***************
32*** 1045,1051 ****
33 case METHOD_GET:
34 case METHOD_HEAD:
35 /* We do not want to see a request entity on GET/HEAD requests */
36! return (r->content_length <= 0);
37 default:
38 /* For other types of requests we don't care */
39 return 1;
40--- 1045,1051 ----
41 case METHOD_GET:
42 case METHOD_HEAD:
43 /* We do not want to see a request entity on GET/HEAD requests */
44! return (r->content_length <= 0 || Config.onoff.request_entities);
45 default:
46 /* For other types of requests we don't care */
47 return 1;
48Index: squid/src/structs.h
49diff -c squid/src/structs.h:1.408.2.7 squid/src/structs.h:1.408.2.8
50*** squid/src/structs.h:1.408.2.7 Wed Oct 2 03:02:30 2002
51--- squid/src/structs.h Sun Nov 10 07:33:07 2002
52***************
53*** 590,595 ****
54--- 590,596 ----
55 int ie_refresh;
56 int vary_ignore_expire;
57 int pipeline_prefetch;
58+ int request_entities;
59 } onoff;
60 acl *aclList;
61 struct {
This page took 0.0393 seconds and 4 git commands to generate.