Split HTTP request from response Content-Type. Request Content-Type should be present with POSTs and not with other methods such as GET

This commit is contained in:
Luca Deri
2021-01-06 18:28:24 +01:00
parent cd21f0d316
commit eb37f8f1fb
12 changed files with 83 additions and 52 deletions
+1 -1
View File
@@ -1222,7 +1222,7 @@ struct ndpi_flow_struct {
*/
struct {
ndpi_http_method method;
char *url, *content_type, *user_agent;
char *url, *content_type /* response */, *request_content_type /* e.g. for POST */, *user_agent;
u_int8_t num_request_headers, num_response_headers;
u_int8_t request_version; /* 0=1.0 and 1=1.1. Create an enum for this? */
u_int16_t response_status_code; /* 200, 404, etc. */