From b5b4e3d57ae59f19a0dddb719390ef43000b0777 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Mon, 6 Dec 1999 20:27:40 +0000 Subject: Patch from Jerry Talkington to: treat CONNECT as an HTTP request; add DELETE and OPTIONS as request names. Make the order of names in the AUTHORS file match that of the man page and the About box. svn path=/trunk/; revision=1231 --- packet-http.c | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) (limited to 'packet-http.c') diff --git a/packet-http.c b/packet-http.c index ff6eeaf1a3..df23cd9b6d 100644 --- a/packet-http.c +++ b/packet-http.c @@ -3,7 +3,7 @@ * * Guy Harris * - * $Id: packet-http.c,v 1.11 1999/11/16 11:42:31 guy Exp $ + * $Id: packet-http.c,v 1.12 1999/12/06 20:27:19 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs @@ -216,12 +216,25 @@ is_http_request_or_reply(const u_char *data, int linelen) } } if (linelen >= 6) { - if (strncasecmp(data, "DELETE", 6) == 0) + if (strncasecmp(data, "DELETE", 6) == 0) { + proto_tree_add_item_hidden(http_tree, + hf_http_request, 0, 0, 1); + return TRUE; + } + } + if (linelen >= 7) { + if (strncasecmp(data, "OPTIONS", 7) == 0) { + proto_tree_add_item_hidden(http_tree, + hf_http_request, 0, 0, 1); return TRUE; + } } if (linelen >= 7) { - if (strncasecmp(data, "OPTIONS", 7) == 0) + if (strncasecmp(data, "CONNECT", 7) == 0) { + proto_tree_add_item_hidden(http_tree, + hf_http_request, 0, 0, 1); return TRUE; + } } return FALSE; } -- cgit v1.2.3