diff options
author | Luca Deri <lucaderi@users.noreply.github.com> | 2020-09-17 21:32:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-17 21:32:25 +0200 |
commit | 753b5dde16bae60299ca8e31afb4f519b13629c1 (patch) | |
tree | d9952a31db78ab45937a856fa2dff987edf0db48 /example/ndpiReader.c | |
parent | 9189aee83b70b0c9cea782970b6b080d62700597 (diff) | |
parent | 8db084ab06ae73e26c2373e92b35cbc5407d41bd (diff) |
Merge pull request #1012 from IvanNardi/ua
QUIC: extract User Agent information
Diffstat (limited to 'example/ndpiReader.c')
-rw-r--r-- | example/ndpiReader.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/example/ndpiReader.c b/example/ndpiReader.c index 76b844b30..e5609f3b0 100644 --- a/example/ndpiReader.c +++ b/example/ndpiReader.c @@ -1268,11 +1268,11 @@ static void printFlow(u_int16_t id, struct ndpi_flow_info *flow, u_int16_t threa if(flow->http.content_type[0] != '\0') fprintf(out, "[Content-Type: %s]", flow->http.content_type); - - if(flow->http.user_agent[0] != '\0') - fprintf(out, "[User-Agent: %s]", flow->http.user_agent); } + if(flow->http.user_agent[0] != '\0') + fprintf(out, "[User-Agent: %s]", flow->http.user_agent); + if(flow->risk) { u_int i; |