projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
62e24f3
)
util.httpstream: For HTTP client responses, changing properties responseversion and...
author
Waqas Hussain
<waqas20@gmail.com>
Sun, 19 Dec 2010 15:28:58 +0000
(20:28 +0500)
committer
Waqas Hussain
<waqas20@gmail.com>
Sun, 19 Dec 2010 15:28:58 +0000
(20:28 +0500)
util/httpstream.lua
patch
|
blob
|
history
diff --git
a/util/httpstream.lua
b/util/httpstream.lua
index c9f2f691627c7d03478a7f7b5f3b9954ed848632..bdc3fce776c45827ffdf7cd533d7df69dc1a4cdc 100644
(file)
--- 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;
success_cb({
code = status_code;
+ httpversion = httpversion;
+ headers = headers;
+ body = body;
+ -- COMPAT the properties below are deprecated
responseversion = httpversion;
responseheaders = headers;
responseversion = httpversion;
responseheaders = headers;
- body = body;
});
end
else coroutine.yield("unknown-parser-type"); end
});
end
else coroutine.yield("unknown-parser-type"); end