diff options
author | Luca Deri <deri@ntop.org> | 2016-02-12 22:07:37 +0100 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2016-02-12 22:07:37 +0100 |
commit | cc4ceb88a06f600fd7a0b44473dd4d2b2d364402 (patch) | |
tree | 9a3df3de89d8fe5569d074fcdaddedd0398fc132 /src/lib/protocols/http.c | |
parent | e9f7df081fe5a405a462a85218ecf66e858ea99a (diff) |
Fix for #143
Diffstat (limited to 'src/lib/protocols/http.c')
-rw-r--r-- | src/lib/protocols/http.c | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/src/lib/protocols/http.c b/src/lib/protocols/http.c index ced34c099..b0fe04159 100644 --- a/src/lib/protocols/http.c +++ b/src/lib/protocols/http.c @@ -206,17 +206,10 @@ static void parseHttpSubprotocol(struct ndpi_detection_module_struct *ndpi_struc If http_dont_dissect_response = 1 dissection of HTTP response mime types won't happen */ - - if(!ndpi_struct->http_dont_dissect_response) { - if(flow->http.url && flow->http_detected) - ndpi_match_host_subprotocol(ndpi_struct, flow, (char *)&flow->http.url[7], - strlen((const char *)&flow->http.url[7]), - NDPI_PROTOCOL_HTTP); - } else - ndpi_match_host_subprotocol(ndpi_struct, flow, (char *)flow->host_server_name, - strlen((const char *)flow->host_server_name), - NDPI_PROTOCOL_HTTP); - } + ndpi_match_host_subprotocol(ndpi_struct, flow, (char *)flow->host_server_name, + strlen((const char *)flow->host_server_name), + NDPI_PROTOCOL_HTTP); + } } /* |