Add Sec-* HTTP headers

fixes #2080
closes #2082
This commit is contained in:
Richard Hodges committed 2020-09-07 17:26:34 +02:00
1 parent 7811f4c52f
commit 91d9457ab9
5 files changed
+376 -360

No files matched your search

+6 -1
View File
@@ -43,7 +43,7 @@ struct field_table
}
using array_type =
std::array<string_view, 353>;
std::array<string_view, 357>;
// Strings are converted to lowercase
static
@@ -116,6 +116,7 @@ struct field_table
*/
field_table()
: by_name_({{
// string constants
"<unknown-field>",
"A-IM",
"Accept",
@@ -393,6 +394,10 @@ struct field_table
"Safe",
"Schedule-Reply",
"Schedule-Tag",
"Sec-Fetch-Dest",
"Sec-Fetch-Mode",
"Sec-Fetch-Site",
"Sec-Fetch-User",
"Sec-WebSocket-Accept",
"Sec-WebSocket-Extensions",
"Sec-WebSocket-Key",