X-Git-Url: http://www.privoxy.org/gitweb/?a=blobdiff_plain;f=urlmatch.c;h=11afc1e9a53c2a0a23f32be6a4ba32b61fc23d5d;hb=b271f626d792960d6cf74eae97e215a6bc5dabf4;hp=57c538ea0d1f8a888478c29555aac11afa1bf3bb;hpb=e77697a135fda9b9d45c06997e0cfc0d154976a6;p=privoxy.git diff --git a/urlmatch.c b/urlmatch.c index 57c538ea..11afc1e9 100644 --- a/urlmatch.c +++ b/urlmatch.c @@ -1,4 +1,4 @@ -const char urlmatch_rcs[] = "$Id: urlmatch.c,v 1.80 2013/11/24 14:47:45 fabiankeil Exp $"; +const char urlmatch_rcs[] = "$Id: urlmatch.c,v 1.83 2014/06/20 09:46:56 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/urlmatch.c,v $ @@ -6,7 +6,7 @@ const char urlmatch_rcs[] = "$Id: urlmatch.c,v 1.80 2013/11/24 14:47:45 fabianke * Purpose : Declares functions to match URLs against URL * patterns. * - * Copyright : Written by and Copyright (C) 2001-2011 + * Copyright : Written by and Copyright (C) 2001-2014 * the Privoxy team. http://www.privoxy.org/ * * Based on the Internet Junkbuster originally written @@ -454,6 +454,12 @@ static int unknown_method(const char *method) */ "VERSION-CONTROL", "REPORT", "CHECKOUT", "CHECKIN", "UNCHECKOUT", "MKWORKSPACE", "UPDATE", "LABEL", "MERGE", "BASELINE-CONTROL", "MKACTIVITY", + /* + * The PATCH method is defined by RFC5789, the format of the + * actual patch in the body depends on the application, but from + * Privoxy's point of view it doesn't matter. + */ + "PATCH", }; int i; @@ -543,6 +549,7 @@ jb_err parse_http_request(const char *req, struct http_request *http) http->cmd = strdup_or_die(req); http->gpc = strdup_or_die(v[0]); http->ver = strdup_or_die(v[2]); + http->ocmd = strdup_or_die(http->cmd); freez(buf);