Add .gitignore
[pound.git] / debian / patches / 0004-add_http_patch_support.patch
1 From: Brett Parker <iDunno@sommitrealweird.co.uk>
2 Date: Mon, 3 Mar 2014 15:05:32 +0000
3 Subject: add_http_patch_support
4
5   - patch from http://www.apsis.ch/pound/pound_list/archive/2013/2013-08/1377264673000
6 ---
7  config.c |    8 ++++----
8  pound.8  |    2 +-
9  2 files changed, 5 insertions(+), 5 deletions(-)
10
11 diff --git a/config.c b/config.c
12 index 3219137..a194164 100755
13 --- a/config.c
14 +++ b/config.c
15 @@ -83,10 +83,10 @@ static regmatch_t   matches[5];
16  
17  static char *xhttp[] = {
18      "^(GET|POST|HEAD) ([^ ]+) HTTP/1.[01]$",
19 -    "^(GET|POST|HEAD|PUT|DELETE) ([^ ]+) HTTP/1.[01]$",
20 -    "^(GET|POST|HEAD|PUT|DELETE|LOCK|UNLOCK|PROPFIND|PROPPATCH|SEARCH|MKCOL|MOVE|COPY|OPTIONS|TRACE|MKACTIVITY|CHECKOUT|MERGE|REPORT) ([^ ]+) HTTP/1.[01]$",
21 -    "^(GET|POST|HEAD|PUT|DELETE|LOCK|UNLOCK|PROPFIND|PROPPATCH|SEARCH|MKCOL|MOVE|COPY|OPTIONS|TRACE|MKACTIVITY|CHECKOUT|MERGE|REPORT|SUBSCRIBE|UNSUBSCRIBE|BPROPPATCH|POLL|BMOVE|BCOPY|BDELETE|BPROPFIND|NOTIFY|CONNECT) ([^ ]+) HTTP/1.[01]$",
22 -    "^(GET|POST|HEAD|PUT|DELETE|LOCK|UNLOCK|PROPFIND|PROPPATCH|SEARCH|MKCOL|MOVE|COPY|OPTIONS|TRACE|MKACTIVITY|CHECKOUT|MERGE|REPORT|SUBSCRIBE|UNSUBSCRIBE|BPROPPATCH|POLL|BMOVE|BCOPY|BDELETE|BPROPFIND|NOTIFY|CONNECT|RPC_IN_DATA|RPC_OUT_DATA) ([^ ]+) HTTP/1.[01]$",
23 +    "^(GET|POST|HEAD|PUT|PATCH|DELETE) ([^ ]+) HTTP/1.[01]$",
24 +    "^(GET|POST|HEAD|PUT|PATCH|DELETE|LOCK|UNLOCK|PROPFIND|PROPPATCH|SEARCH|MKCOL|MOVE|COPY|OPTIONS|TRACE|MKACTIVITY|CHECKOUT|MERGE|REPORT) ([^ ]+) HTTP/1.[01]$",
25 +    "^(GET|POST|HEAD|PUT|PATCH|DELETE|LOCK|UNLOCK|PROPFIND|PROPPATCH|SEARCH|MKCOL|MOVE|COPY|OPTIONS|TRACE|MKACTIVITY|CHECKOUT|MERGE|REPORT|SUBSCRIBE|UNSUBSCRIBE|BPROPPATCH|POLL|BMOVE|BCOPY|BDELETE|BPROPFIND|NOTIFY|CONNECT) ([^ ]+) HTTP/1.[01]$",
26 +    "^(GET|POST|HEAD|PUT|PATCH|DELETE|LOCK|UNLOCK|PROPFIND|PROPPATCH|SEARCH|MKCOL|MOVE|COPY|OPTIONS|TRACE|MKACTIVITY|CHECKOUT|MERGE|REPORT|SUBSCRIBE|UNSUBSCRIBE|BPROPPATCH|POLL|BMOVE|BCOPY|BDELETE|BPROPFIND|NOTIFY|CONNECT|RPC_IN_DATA|RPC_OUT_DATA) ([^ ]+) HTTP/1.[01]$",
27  };
28  
29  static int  log_level = 1;
30 diff --git a/pound.8 b/pound.8
31 index b95e794..c173c96 100755
32 --- a/pound.8
33 +++ b/pound.8
34 @@ -356,7 +356,7 @@ Defines which HTTP verbs are accepted. The possible values are:
35  (default) accept only standard HTTP requests (GET, POST, HEAD).
36  .IP
37  .I 1
38 -additionally allow extended HTTP requests (PUT, DELETE).
39 +additionally allow extended HTTP requests (PUT, PATCH, DELETE).
40  .IP
41  .I 2
42  additionally allow standard WebDAV verbs (LOCK, UNLOCK, PROPFIND,