mirror of
https://github.com/lammertb/libhttp.git
synced 2026-01-03 16:02:30 +03:00
Duktape: Add http_headers
This commit is contained in:
@@ -34,7 +34,8 @@ opts = [
|
||||
"websocket_root",
|
||||
"lua_websocket_pattern",
|
||||
"access_control_allow_origin",
|
||||
"error_pages"
|
||||
"error_pages",
|
||||
"_unknown__option"
|
||||
]
|
||||
|
||||
// send a header
|
||||
@@ -53,7 +54,7 @@ for (var i=0; i < opts.length; i++) {
|
||||
if (typeof(n) == "string") {
|
||||
print("<p>Option " + o + " = " + n + "</p>\n");
|
||||
} else {
|
||||
print("<p>Option " + o + " not set</p>\n");
|
||||
print("<p>Option " + o + " not known</p>\n");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user