Line 0
Link Here
|
|
|
1 |
Temporary patch for Squid bug 2206 ("no proxy Authenticate header in 407 |
2 |
response") as fetched from Squid bugzilla 2008-03-26. |
3 |
|
4 |
See <http://www.squid-cache.org/bugs/show_bug_cgi?id=2206> for further |
5 |
information. |
6 |
=== modified file 'src/HttpHeader.cc' |
7 |
--- src/HttpHeader.cc 2008-02-27 12:59:29 +0000 |
8 |
+++ src/HttpHeader.cc 2008-03-12 20:53:15 +0000 |
9 |
@@ -1806,5 +1806,7 @@ |
10 |
} |
11 |
if (headers_deleted) |
12 |
refreshMask(); |
13 |
+ |
14 |
+ delById(HDR_CONNECTION); |
15 |
} |
16 |
} |
17 |
|
18 |
=== modified file 'src/HttpHeader.h' |
19 |
--- src/HttpHeader.h 2008-02-27 12:59:29 +0000 |
20 |
+++ src/HttpHeader.h 2008-03-12 20:53:56 +0000 |
21 |
@@ -247,15 +247,13 @@ |
22 |
int hasListMember(http_hdr_type id, const char *member, const char separator) const; |
23 |
int hasByNameListMember(const char *name, const char *member, const char separator) const; |
24 |
void removeHopByHopEntries(); |
25 |
+ void removeConnectionHeaderEntries(); |
26 |
/* protected, do not use these, use interface functions instead */ |
27 |
Vector<HttpHeaderEntry *> entries; /* parsed fields in raw format */ |
28 |
HttpHeaderMask mask; /* bit set <=> entry present */ |
29 |
http_hdr_owner_type owner; /* request or reply */ |
30 |
int len; /* length when packed, not counting terminating '\0' */ |
31 |
|
32 |
-protected: |
33 |
- void removeConnectionHeaderEntries(); |
34 |
- |
35 |
private: |
36 |
HttpHeaderEntry *findLastEntry(http_hdr_type id) const; |
37 |
// Make it non-copyable. Our destructor is a bit nasty... |
38 |
|
39 |
=== modified file 'src/client_side_reply.cc' |
40 |
--- src/client_side_reply.cc 2008-02-27 12:59:29 +0000 |
41 |
+++ src/client_side_reply.cc 2008-03-12 20:54:37 +0000 |
42 |
@@ -1214,7 +1214,7 @@ |
43 |
if (is_hit) |
44 |
hdr->delById(HDR_SET_COOKIE); |
45 |
|
46 |
- reply->header.removeHopByHopEntries(); |
47 |
+ reply->header.removeConnectionHeaderEntries(); |
48 |
|
49 |
// if (request->range) |
50 |
// clientBuildRangeHeader(http, reply); |