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 | e626770ceb54e4526ca2fec6aa59e63ca2cfd27f (patch) | |
tree | 3700083efb4855d866c03cce2ec50c279bbe5eaf /util | |
parent | 242b8f9475a60bf1f9bb574d26269d2d6a10287f (diff) | |
download | prosody-e626770ceb54e4526ca2fec6aa59e63ca2cfd27f.tar.gz prosody-e626770ceb54e4526ca2fec6aa59e63ca2cfd27f.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 |