diff options
author | Luca Deri <deri@ntop.org> | 2022-12-05 21:27:30 +0100 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2022-12-05 21:27:30 +0100 |
commit | e0afc16aa2ae78c39b7b51c73840f79ba1723c9c (patch) | |
tree | 58cb02776a9e8f069910fe1cddd8308496e6cce6 /example/ndpiReader.c | |
parent | c882120afd76255d6511f9b43b9776f8e0a9044f (diff) |
Exported HTTP server in metadata
Diffstat (limited to 'example/ndpiReader.c')
-rw-r--r-- | example/ndpiReader.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/example/ndpiReader.c b/example/ndpiReader.c index e82e089db..326197ee3 100644 --- a/example/ndpiReader.c +++ b/example/ndpiReader.c @@ -1578,6 +1578,9 @@ static void printFlow(u_int32_t id, struct ndpi_flow_info *flow, u_int16_t threa fprintf(out, "[Content-Type: %s]", flow->http.content_type); } + if(flow->http.server[0] != '\0') + fprintf(out, "[Server: %s]", flow->http.server); + if(flow->http.user_agent[0] != '\0') fprintf(out, "[User-Agent: %s]", flow->http.user_agent); |