diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2008-06-15 04:11:03 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2008-06-15 04:11:03 +0000 |
commit | 8b0524cd919cec9deba8b8f63033823fa744f1e6 (patch) | |
tree | 27559652a707b516ec40448821b1953f34ce9259 /libs | |
parent | 6d3ac58b4216a81d9a2809401f22c2d053c9b354 (diff) |
* luci/libs: protocol.lua: store status code and status description in http message object
Diffstat (limited to 'libs')
-rw-r--r-- | libs/web/luasrc/http/protocol.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/web/luasrc/http/protocol.lua b/libs/web/luasrc/http/protocol.lua index bb0bd3a2e..31e8f5e8d 100644 --- 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 |