aboutsummaryrefslogtreecommitdiff
path: root/example/reader_util.c
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2019-10-25 15:56:47 +0200
committerLuca Deri <deri@ntop.org>2019-10-25 15:56:47 +0200
commite6bd64b3eab1863eed036a3823ab20b6f05ffc91 (patch)
tree9e9b620593465cfba57a913584abc9046d65bb34 /example/reader_util.c
parent12cf0c47639a965d156ebd3a2a7721cca1331f23 (diff)
Improved HTTP reporting in ndpiReader
Diffstat (limited to 'example/reader_util.c')
-rw-r--r--example/reader_util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/example/reader_util.c b/example/reader_util.c
index e7ec81d3c..6834dde8d 100644
--- a/example/reader_util.c
+++ b/example/reader_util.c
@@ -966,7 +966,7 @@ void process_ndpi_collected_info(struct ndpi_workflow * workflow, struct ndpi_fl
}
}
/* HTTP */
- else if(flow->detected_protocol.master_protocol == NDPI_PROTOCOL_HTTP) {
+ else if(flow->detected_protocol.app_protocol == NDPI_PROTOCOL_HTTP) {
if(flow->ndpi_flow->http.url != NULL) {
snprintf(flow->http.url, sizeof(flow->http.url), "%s", flow->ndpi_flow->http.url);
flow->http.response_status_code = flow->ndpi_flow->http.response_status_code;