aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authorosa <osa@FreeBSD.org>2012-02-06 18:30:06 +0800
committerosa <osa@FreeBSD.org>2012-02-06 18:30:06 +0800
commitfe6effe3b702ea03429336ab719b2c81573406f6 (patch)
tree9f9783ea758d6553f5afaf5b76ebebe407c3062e /www
parentfc74d27589f68138a33c95bbeef7ba80d2afbd29 (diff)
downloadfreebsd-ports-gnome-fe6effe3b702ea03429336ab719b2c81573406f6.tar.gz
freebsd-ports-gnome-fe6effe3b702ea03429336ab719b2c81573406f6.tar.zst
freebsd-ports-gnome-fe6effe3b702ea03429336ab719b2c81573406f6.zip
Really add method REPORT support.
Submitted by: Dmitry Afanasiev <KOT@MATPOCKuH.Ru>
Diffstat (limited to 'www')
-rw-r--r--www/oops/files/patch-methodreport38
-rw-r--r--www/oops/files/patch-src_methodreport34
2 files changed, 34 insertions, 38 deletions
diff --git a/www/oops/files/patch-methodreport b/www/oops/files/patch-methodreport
deleted file mode 100644
index 95c70c4d320a..000000000000
--- a/www/oops/files/patch-methodreport
+++ /dev/null
@@ -1,38 +0,0 @@
-diff -ruN oops.orig/files/patch-src_methodreport oops/files/patch-src_methodreport
---- oops.orig/files/patch-src_methodreport 1970-01-01 03:00:00.000000000 +0300
-+++ oops/files/patch-src_methodreport 2012-01-11 18:09:44.517662295 +0400
-@@ -0,0 +1,34 @@
-+diff -ruN src.orig/http_utils.c src/http_utils.c
-+--- src.orig/http_utils.c 2012-01-11 18:04:20.773665172 +0400
-++++ src/http_utils.c 2012-01-11 18:07:47.378664712 +0400
-+@@ -120,6 +120,7 @@
-+ else if ( rq->meth == METH_MOVE ) meth="MOVE";
-+ else if ( rq->meth == METH_LOCK ) meth="LOCK";
-+ else if ( rq->meth == METH_UNLOCK ) meth="UNLOCK";
-++ else if ( rq->meth == METH_REPORT ) meth="REPORT";
-+ else
-+ return;
-+ IF_STRDUP(rq->tag, "TCP_MISS");
-+diff -ruN src.orig/oops.h src/oops.h
-+--- src.orig/oops.h 2012-01-11 18:04:20.752662579 +0400
-++++ src/oops.h 2012-01-11 18:05:59.183668229 +0400
-+@@ -224,6 +224,7 @@
-+ #define METH_OPTIONS 15
-+ #define METH_PURGE_SITE 16
-+ #define METH_PURGE_SITE_R 17
-++#define METH_REPORT 18
-+
-+ #define AND_PUT 1
-+ #define AND_USE 2
-+diff -ruN src.orig/run_client.c src/run_client.c
-+--- src.orig/run_client.c 2012-01-11 18:04:20.816667134 +0400
-++++ src/run_client.c 2012-01-11 18:08:03.998664367 +0400
-+@@ -1201,6 +1201,8 @@
-+ rq->meth = METH_PURGE_SITE_R;
-+ else if (!strcasecmp(src, "OPTIONS"))
-+ rq->meth = METH_OPTIONS;
-++ else if (!strcasecmp(src, "REPORT"))
-++ rq->meth = METH_REPORT;
-+ else {
-+ my_xlog(OOPS_LOG_SEVERE, "parse_http_request(): Unrecognized method `%s'.\n", src);
-+ *p = ' '; \ No newline at end of file
diff --git a/www/oops/files/patch-src_methodreport b/www/oops/files/patch-src_methodreport
new file mode 100644
index 000000000000..5e438744b5a7
--- /dev/null
+++ b/www/oops/files/patch-src_methodreport
@@ -0,0 +1,34 @@
+diff -ruN src.orig/http_utils.c src/http_utils.c
+--- src.orig/http_utils.c 2012-01-11 18:04:20.773665172 +0400
++++ src/http_utils.c 2012-01-11 18:07:47.378664712 +0400
+@@ -120,6 +120,7 @@
+ else if ( rq->meth == METH_MOVE ) meth="MOVE";
+ else if ( rq->meth == METH_LOCK ) meth="LOCK";
+ else if ( rq->meth == METH_UNLOCK ) meth="UNLOCK";
++ else if ( rq->meth == METH_REPORT ) meth="REPORT";
+ else
+ return;
+ IF_STRDUP(rq->tag, "TCP_MISS");
+diff -ruN src.orig/oops.h src/oops.h
+--- src.orig/oops.h 2012-01-11 18:04:20.752662579 +0400
++++ src/oops.h 2012-01-11 18:05:59.183668229 +0400
+@@ -224,6 +224,7 @@
+ #define METH_OPTIONS 15
+ #define METH_PURGE_SITE 16
+ #define METH_PURGE_SITE_R 17
++#define METH_REPORT 18
+
+ #define AND_PUT 1
+ #define AND_USE 2
+diff -ruN src.orig/run_client.c src/run_client.c
+--- src.orig/run_client.c 2012-01-11 18:04:20.816667134 +0400
++++ src/run_client.c 2012-01-11 18:08:03.998664367 +0400
+@@ -1201,6 +1201,8 @@
+ rq->meth = METH_PURGE_SITE_R;
+ else if (!strcasecmp(src, "OPTIONS"))
+ rq->meth = METH_OPTIONS;
++ else if (!strcasecmp(src, "REPORT"))
++ rq->meth = METH_REPORT;
+ else {
+ my_xlog(OOPS_LOG_SEVERE, "parse_http_request(): Unrecognized method `%s'.\n", src);
+ *p = ' '; \ No newline at end of file