aboutsummaryrefslogtreecommitdiff
path: root/src/lib/protocols/http.c
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2016-02-12 22:07:37 +0100
committerLuca Deri <deri@ntop.org>2016-02-12 22:07:37 +0100
commitcc4ceb88a06f600fd7a0b44473dd4d2b2d364402 (patch)
tree9a3df3de89d8fe5569d074fcdaddedd0398fc132 /src/lib/protocols/http.c
parente9f7df081fe5a405a462a85218ecf66e858ea99a (diff)
Fix for #143
Diffstat (limited to 'src/lib/protocols/http.c')
-rw-r--r--src/lib/protocols/http.c15
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);
+ }
}
/*