Avoid extra allocation for static HTTP handling

This commit is contained in:
cpq committed 2021-03-07 11:56:20 +00:00
1 parent e710df4c80
commit 366426e8bb
4 files changed
+20 -44

No files matched your search

+1
View File
@@ -17,6 +17,7 @@ struct mg_http_message {
struct mg_http_header headers[MG_MAX_HTTP_HEADERS]; // Headers
struct mg_str body; // Body
struct mg_str head; // Request + headers
struct mg_str chunk; // Chunk for chunked encoding, or partial body
struct mg_str message; // Request + headers + body
};