response headers: disallow space in header name, allow tab in header value

This commit is contained in:
Evgeny Grin (Karlson2k)
2021-08-01 15:33:31 +03:00
parent 39eb60df61
commit 571bdda907
+1 -1
View File
@@ -167,9 +167,9 @@ add_response_entry (struct MHD_Response *response,
(0 == header[0]) ||
(0 == content[0]) ||
(NULL != strchr (header, '\t')) ||
(NULL != strchr (header, ' ')) ||
(NULL != strchr (header, '\r')) ||
(NULL != strchr (header, '\n')) ||
(NULL != strchr (content, '\t')) ||
(NULL != strchr (content, '\r')) ||
(NULL != strchr (content, '\n')) )
return MHD_NO;