diff options
author | Guy Harris <guy@alum.mit.edu> | 1999-12-06 20:27:40 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 1999-12-06 20:27:40 +0000 |
commit | b5b4e3d57ae59f19a0dddb719390ef43000b0777 (patch) | |
tree | 2701a860497f56bde610bd04e7a2f933614385fa /packet-http.c | |
parent | e5120ef69e2b46328400a0ede487822c25ee6efa (diff) | |
download | wireshark-b5b4e3d57ae59f19a0dddb719390ef43000b0777.tar.gz wireshark-b5b4e3d57ae59f19a0dddb719390ef43000b0777.tar.bz2 wireshark-b5b4e3d57ae59f19a0dddb719390ef43000b0777.zip |
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
Diffstat (limited to 'packet-http.c')
-rw-r--r-- | packet-http.c | 19 |
1 files changed, 16 insertions, 3 deletions
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 <guy@netapp.com> * - * $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 <gerald@zing.org> @@ -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; } |