From: Jo-Philipp Wich Date: Sun, 15 Jun 2008 04:11:03 +0000 (+0000) Subject: * luci/libs: protocol.lua: store status code and status description in http message... X-Git-Tag: 0.8.0~813 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=8b0524cd919cec9deba8b8f63033823fa744f1e6;p=oweals%2Fluci.git * luci/libs: protocol.lua: store status code and status description in http message object --- 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