diff options
author | Steven Barth <steven@midlink.org> | 2008-05-07 21:08:16 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-05-07 21:08:16 +0000 |
commit | 0120aec28526235d5efce2bbb12bc0e89cae6352 (patch) | |
tree | 98d89a0e27fbcd39d9cc80e53627128be7211c03 /core/src | |
parent | f8ac8062a51fdbf9c09e9e53738d4aa83c852695 (diff) |
* Fixed webuci bootstrapper
* Added ffluci.http.header function
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/ffluci/sgi/haserl.lua | 4 | ||||
-rw-r--r-- | core/src/ffluci/sgi/webuci.lua | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/core/src/ffluci/sgi/haserl.lua b/core/src/ffluci/sgi/haserl.lua index 0db558d99..6fefd7baf 100644 --- a/core/src/ffluci/sgi/haserl.lua +++ b/core/src/ffluci/sgi/haserl.lua @@ -53,6 +53,10 @@ function ffluci.http.formvaluetable(prefix) return ffluci.http.formvalue(prefix, {}) end +-- Sends a custom HTTP-Header +function ffluci.http.header(key, value) + print(key .. ": " .. value) +end -- Set Content-Type function ffluci.http.prepare_content(type) diff --git a/core/src/ffluci/sgi/webuci.lua b/core/src/ffluci/sgi/webuci.lua index 75fffa553..87bb69302 100644 --- a/core/src/ffluci/sgi/webuci.lua +++ b/core/src/ffluci/sgi/webuci.lua @@ -55,6 +55,10 @@ function ffluci.http.formvaluetable(prefix) return vals end +-- Sends a custom HTTP-Header +function ffluci.http.header(key, value) + print(key .. ": " .. value) +end -- Set Content-Type function ffluci.http.prepare_content(type) |