aboutsummaryrefslogtreecommitdiffstats
path: root/util/httpstream.lua
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2010-12-19 20:28:58 +0500
committerWaqas Hussain <waqas20@gmail.com>2010-12-19 20:28:58 +0500
commite626770ceb54e4526ca2fec6aa59e63ca2cfd27f (patch)
tree3700083efb4855d866c03cce2ec50c279bbe5eaf /util/httpstream.lua
parent242b8f9475a60bf1f9bb574d26269d2d6a10287f (diff)
downloadprosody-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/httpstream.lua')
-rw-r--r--util/httpstream.lua5
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