diff options
author | Waqas Hussain <waqas20@gmail.com> | 2010-12-19 20:28:58 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2010-12-19 20:28:58 +0500 |
commit | 7cc4ae96d4315892682a5dc35083ef463aa6f71e (patch) | |
tree | 34d68615873b958a51c4dd2c561ff70b98b3a395 /util | |
parent | 47c4c75803bb05dd19c1f593de2f707ab2c158c3 (diff) | |
download | prosody-7cc4ae96d4315892682a5dc35083ef463aa6f71e.tar.gz prosody-7cc4ae96d4315892682a5dc35083ef463aa6f71e.zip |
util.httpstream: For HTTP client responses, changing properties responseversion and responseheaders to httpversion and httpheaders, to match HTTP server requests.
Diffstat (limited to 'util')
-rw-r--r-- | util/httpstream.lua | 5 |
1 files changed, 4 insertions, 1 deletions
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 |