1
0
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:
bel
2015-10-12 21:23:59 +02:00
parent 870772a0b7
commit 9a9a424511
2 changed files with 14 additions and 5 deletions

View File

@@ -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");
}
}