mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-16 00:00:07 +01:00

The proxy line is dumped in the token buffer as any other HTTP header Adapted by AG to move token id to be last in the parsed list
86 lines
1.4 KiB
C
86 lines
1.4 KiB
C
/* set of parsable strings -- ALL LOWER CASE */
|
|
|
|
static const char *set[] = {
|
|
"get ",
|
|
"post ",
|
|
"options ",
|
|
"host:",
|
|
"connection:",
|
|
"upgrade:",
|
|
"origin:",
|
|
"sec-websocket-draft:",
|
|
"\x0d\x0a",
|
|
|
|
"sec-websocket-extensions:",
|
|
"sec-websocket-key1:",
|
|
"sec-websocket-key2:",
|
|
"sec-websocket-protocol:",
|
|
|
|
"sec-websocket-accept:",
|
|
"sec-websocket-nonce:",
|
|
"http/1.1 ",
|
|
"http2-settings:",
|
|
|
|
"accept:",
|
|
"access-control-request-headers:",
|
|
"if-modified-since:",
|
|
"if-none-match:",
|
|
"accept-encoding:",
|
|
"accept-language:",
|
|
"pragma:",
|
|
"cache-control:",
|
|
"authorization:",
|
|
"cookie:",
|
|
"content-length:",
|
|
"content-type:",
|
|
"date:",
|
|
"range:",
|
|
"referer:",
|
|
"sec-websocket-key:",
|
|
"sec-websocket-version:",
|
|
"sec-websocket-origin:",
|
|
|
|
":authority:",
|
|
":method:",
|
|
":path:",
|
|
":scheme:",
|
|
":status:",
|
|
|
|
"accept-charset:",
|
|
"accept-ranges:",
|
|
"access-control-allow-origin:",
|
|
"age:",
|
|
"allow:",
|
|
"content-disposition:",
|
|
"content-encoding:",
|
|
"content-language:",
|
|
"content-location:",
|
|
"content-range:",
|
|
"etag:",
|
|
"expect:",
|
|
"expires:",
|
|
"from:",
|
|
"if-match:",
|
|
"if-range:",
|
|
"if-unmodified-since:",
|
|
"last-modified:",
|
|
"link:",
|
|
"location:",
|
|
"max-forwards:",
|
|
"proxy-authenticate:",
|
|
"proxy-authorization:",
|
|
"refresh:",
|
|
"retry-after:",
|
|
"server:",
|
|
"set-cookie:",
|
|
"strict-transport-security:",
|
|
"transfer-encoding:",
|
|
"user-agent:",
|
|
"vary:",
|
|
"via:",
|
|
"www-authenticate:",
|
|
"proxy ",
|
|
|
|
"", /* not matchable */
|
|
|
|
};
|