From: Waqas Hussain Date: Sun, 19 Dec 2010 15:28:58 +0000 (+0500) Subject: util.httpstream: For HTTP client responses, changing properties responseversion and... X-Git-Url: https://git.enpas.org/?a=commitdiff_plain;h=1561f7db5b99a7861bbf5da4b07a1443d1422854;p=prosody.git util.httpstream: For HTTP client responses, changing properties responseversion and responseheaders to httpversion and httpheaders, to match HTTP server requests. --- 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