Henrik Nordstrom wrote:
tor 2007-03-01 klockan 09:48 +0800 skrev Adrian Chadd:
I've again been bitten by the by default Squid doesn't support methods
for application X where X is almost always Subversion.
Heh..
What do people think about:
* adding in the Subversion methods in by default?
Yes. Do it now and I'll get it shipped in 2.6.STABLE10.
Here are patches for squid2 and squid3 that add three missing methods
according to the list in the Subversion FAQ.
--
Pawel
Index: src/enums.h
===
RCS file: /squid/squid/src/enums.h,v
retrieving revision 1.237
diff -u -r1.237 enums.h
--- src/enums.h 19 Jan 2007 01:10:12 - 1.237
+++ src/enums.h 3 Mar 2007 14:44:48 -
@@ -418,6 +418,9 @@
METHOD_UNSUBSCRIBE,
METHOD_POLL,
METHOD_REPORT,
+METHOD_MKACTIVITY,
+METHOD_CHECKOUT,
+METHOD_MERGE,
/* Extension methods must be last, Add any new methods before this line */
METHOD_EXT00,
METHOD_EXT01,
Index: src/url.c
===
RCS file: /squid/squid/src/url.c,v
retrieving revision 1.149
diff -u -r1.149 url.c
--- src/url.c 1 Feb 2007 08:32:51 - 1.149
+++ src/url.c 3 Mar 2007 14:44:49 -
@@ -64,6 +64,9 @@
{(char *) UNSUBSCRIBE, 11},
{(char *) POLL, 4},
{(char *) REPORT, 6},
+{(char *) MKACTIVITY, 10},
+{(char *) CHECKOUT, 8},
+{(char *) MERGE, 5},
{(char *) %EXT00, 6},
{(char *) %EXT01, 6},
{(char *) %EXT02, 6},
Index: src/HttpRequestMethod.cc
===
RCS file: /squid/squid3/src/HttpRequestMethod.cc,v
retrieving revision 1.1
diff -u -r1.1 HttpRequestMethod.cc
--- src/HttpRequestMethod.cc 8 May 2006 23:38:33 - 1.1
+++ src/HttpRequestMethod.cc 3 Mar 2007 14:55:50 -
@@ -67,6 +67,9 @@
UNSUBSCRIBE,
POLL,
REPORT,
+MKACTIVITY,
+CHECKOUT,
+MERGE,
%EXT00,
%EXT01,
%EXT02,
Index: src/HttpRequestMethod.h
===
RCS file: /squid/squid3/src/HttpRequestMethod.h,v
retrieving revision 1.3
diff -u -r1.3 HttpRequestMethod.h
--- src/HttpRequestMethod.h 10 May 2006 21:03:04 - 1.3
+++ src/HttpRequestMethod.h 3 Mar 2007 14:55:51 -
@@ -64,6 +64,9 @@
METHOD_UNSUBSCRIBE,
METHOD_POLL,
METHOD_REPORT,
+METHOD_MKACTIVITY,
+METHOD_CHECKOUT,
+METHOD_MERGE,
METHOD_EXT00,
METHOD_EXT01,
METHOD_EXT02,