projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
* luci/libs: protocol.lua: store status code and status description in http message...
[project/luci.git]
/
libs
/
web
/
luasrc
/
http
/
protocol.lua
diff --git
a/libs/web/luasrc/http/protocol.lua
b/libs/web/luasrc/http/protocol.lua
index
bb0bd3a
..
31e8f5e
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