From df1b3367a9dffa937cd2cc0de460d4394079ec6e Mon Sep 17 00:00:00 2001 From: Luca Deri Date: Thu, 17 Dec 2020 12:58:12 +0100 Subject: Type change to avoid Windows compilation issues --- src/lib/protocols/http.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/lib/protocols') diff --git a/src/lib/protocols/http.c b/src/lib/protocols/http.c index 266b441ac..cc81644aa 100644 --- a/src/lib/protocols/http.c +++ b/src/lib/protocols/http.c @@ -441,7 +441,8 @@ static void check_content_type_and_change_protocol(struct ndpi_detection_module_ ndpi_check_http_url(ndpi_struct, flow, &flow->http.url[packet->host_line.len]); } - flow->http.method = ndpi_http_str2method((const char*)flow->packet.http_method.ptr, flow->packet.http_method.len); + flow->http.method = ndpi_http_str2method((const char*)flow->packet.http_method.ptr, + (u_int16_t)flow->packet.http_method.len); } if(packet->server_line.ptr != NULL && (packet->server_line.len > 7)) { -- cgit v1.2.3