From 646c98ab4275df7988aab8d69c99a18b0f2f8676 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Sat, 9 Mar 2013 09:09:05 +0800 Subject: [PATCH] dont sweat unkknown method for client Signed-off-by: Andy Green --- lib/parsers.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/parsers.c b/lib/parsers.c index 4de8048c..7e6fd898 100644 --- a/lib/parsers.c +++ b/lib/parsers.c @@ -473,7 +473,8 @@ int libwebsocket_parse(struct libwebsocket *wsi, unsigned char c) if (wsi->u.hdr.lextable_pos < 0) { /* this is not a header we know about */ - if (wsi->u.hdr.ah->frag_index[WSI_TOKEN_GET_URI]) { + if (wsi->u.hdr.ah->frag_index[WSI_TOKEN_GET_URI] || + wsi->u.hdr.ah->frag_index[WSI_TOKEN_HTTP]) { /* * altready had the method, no idea what * this crap is, ignore