projects
/
project
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6d3ac58
)
* luci/libs: protocol.lua: store status code and status description in http message...
author
Jo-Philipp Wich
<jow@openwrt.org>
Sun, 15 Jun 2008 04:11:03 +0000
(
04:11
+0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Sun, 15 Jun 2008 04:11:03 +0000
(
04:11
+0000)
libs/web/luasrc/http/protocol.lua
patch
|
blob
|
history
diff --git
a/libs/web/luasrc/http/protocol.lua
b/libs/web/luasrc/http/protocol.lua
index bb0bd3a2ea120987ac5e72ece2785d1bba4df581..31e8f5e8da973c233f99a641a49e4dd68ab548a4 100644
(file)
--- a/
libs/web/luasrc/http/protocol.lua
+++ b/
libs/web/luasrc/http/protocol.lua
@@
-339,7
+339,8
@@
function parse_message( data, filecb )
if method then
message.request_method = method
- message.status = arg2 and arg1 or 0
+ message.status_code = arg2 and arg1 or 200
+ message.status_message = arg2 or nil
message.request_uri = arg2 and nil or arg1
if method == "response" then