From 8107e05fdbd12ce8e0b7815d62791a63937eb07a Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Sun, 19 Dec 2010 20:28:58 +0500 Subject: [PATCH] util.httpstream: For HTTP client responses, changing properties responseversion and responseheaders to httpversion and httpheaders, to match HTTP server requests. --- util/httpstream.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/util/httpstream.lua b/util/httpstream.lua index c9f2f691..bdc3fce7 100644 --- a/util/httpstream.lua +++ b/util/httpstream.lua @@ -104,9 +104,12 @@ local function parser(success_cb, parser_type, options_cb) success_cb({ code = status_code; + httpversion = httpversion; + headers = headers; + body = body; + -- COMPAT the properties below are deprecated responseversion = httpversion; responseheaders = headers; - body = body; }); end else coroutine.yield("unknown-parser-type"); end -- 2.30.2