Rework extraction of HTTP headers (#2183)
Extract only the headers that we really need/use. Avoid too many `strcmp`; the algorithm might be a little bit overwhelming right now but it might be useful if we have further headers in the future.
This commit is contained in:
@@ -96,7 +96,6 @@ static int fcgi_parse_params(struct ndpi_flow_struct * const flow,
|
||||
{ "HTTP_HOST", &packet->host_line },
|
||||
{ "HTTP_ACCEPT", &packet->accept_line },
|
||||
{ "HTTP_USER_AGENT", &packet->user_agent_line },
|
||||
{ "HTTP_ACCEPT_ENCODING", &packet->http_transfer_encoding },
|
||||
{ "SERVER_SOFTWARE", &packet->server_line },
|
||||
{ "REQUEST_METHOD", &packet->http_method }
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user