Convert more redef-able constants to runtime options

This commit is contained in:
Daniel Thayer 2018-08-24 16:05:44 -05:00
parent 4912513517
commit 01a899255e
36 changed files with 72 additions and 72 deletions

View file

@ -96,7 +96,7 @@ export {
};
## A list of HTTP headers typically used to indicate proxied requests.
const proxy_headers: set[string] = {
option proxy_headers: set[string] = {
"FORWARDED",
"X-FORWARDED-FOR",
"X-FORWARDED-FROM",
@ -104,7 +104,7 @@ export {
"VIA",
"XROXY-CONNECTION",
"PROXY-CONNECTION",
} &redef;
};
## A list of HTTP methods. Other methods will generate a weird. Note
## that the HTTP analyzer will only accept methods consisting solely