* luci/libs: protocol.lua: store status code and status description in http message object
This commit is contained in:
parent
6d3ac58b42
commit
8b0524cd91
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue