aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-http.c
diff options
context:
space:
mode:
authorAndy Ling <Andy.Ling@quantel.com>2015-05-28 16:27:15 +0200
committerAnders Broman <a.broman58@gmail.com>2015-05-29 05:24:13 +0000
commitc58f51b321431582c481e7af3c379bd32ee01ff3 (patch)
tree1bf843f8bd66c3d671d46da83df1abfbf5804438 /epan/dissectors/packet-http.c
parentb610db61da2253d16f37c9265254a7b19b8d259d (diff)
HTTP: Add support of PATCH method (RFC 5789)
Bug: 11229 Change-Id: I915d2efb873bfa72d500070f382dad10a991ecd4 Reviewed-on: https://code.wireshark.org/review/8673 Reviewed-by: Jeff Morriss <jeff.morriss.ws@gmail.com> Tested-by: Jeff Morriss <jeff.morriss.ws@gmail.com> Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-http.c')
-rw-r--r--epan/dissectors/packet-http.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/epan/dissectors/packet-http.c b/epan/dissectors/packet-http.c
index 216c0ef271..a0657687b5 100644
--- a/epan/dissectors/packet-http.c
+++ b/epan/dissectors/packet-http.c
@@ -2150,6 +2150,7 @@ is_http_request_or_reply(const gchar *data, int linelen, http_type_t *type,
strncmp(data, "BMOVE", indx) == 0 ||
strncmp(data, "MKCOL", indx) == 0 ||
strncmp(data, "TRACE", indx) == 0 ||
+ strncmp(data, "PATCH", indx) == 0 || /* RFC 5789 */
strncmp(data, "LABEL", indx) == 0 || /* RFC 3253 8.2 */
strncmp(data, "MERGE", indx) == 0) { /* RFC 3253 11.2 */
*type = HTTP_REQUEST;