From 21e08ca55e06758548a8c1a39a5010969a9fb6da Mon Sep 17 00:00:00 2001 From: bol-van Date: Thu, 5 Dec 2024 19:23:39 +0300 Subject: [PATCH] tpws,nfqws: fix recognition of CONNECT and OPTIONS http methods --- nfq/protocol.c | 2 +- tpws/protocol.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nfq/protocol.c b/nfq/protocol.c index 62f5f0e..1c1142f 100644 --- a/nfq/protocol.c +++ b/nfq/protocol.c @@ -151,7 +151,7 @@ void ResolveMultiPos(const uint8_t *data, size_t sz, t_l7proto l7proto, const st } -const char *http_methods[] = { "GET /","POST /","HEAD /","OPTIONS /","PUT /","DELETE /","CONNECT /","TRACE /",NULL }; +const char *http_methods[] = { "GET /","POST /","HEAD /","OPTIONS ","PUT /","DELETE /","CONNECT ","TRACE /",NULL }; const char *HttpMethod(const uint8_t *data, size_t len) { const char **method; diff --git a/tpws/protocol.c b/tpws/protocol.c index edd2b5a..9639186 100644 --- a/tpws/protocol.c +++ b/tpws/protocol.c @@ -151,7 +151,7 @@ void ResolveMultiPos(const uint8_t *data, size_t sz, t_l7proto l7proto, const st } -const char *http_methods[] = { "GET /","POST /","HEAD /","OPTIONS /","PUT /","DELETE /","CONNECT /","TRACE /",NULL }; +const char *http_methods[] = { "GET /","POST /","HEAD /","OPTIONS ","PUT /","DELETE /","CONNECT ","TRACE /",NULL }; const char *HttpMethod(const uint8_t *data, size_t len) { const char **method;