Software /
code /
prosody
Diff
util/httpstream.lua @ 3921:70dd7f6026bd
util.httpstream: For HTTP client responses, changing properties responseversion and responseheaders to httpversion and httpheaders, to match HTTP server requests.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Sun, 19 Dec 2010 20:28:58 +0500 |
parent | 3920:215c0ec63816 |
child | 4772:fc16f39e0c79 |
line wrap: on
line diff
--- a/util/httpstream.lua Sun Dec 19 20:27:13 2010 +0500 +++ b/util/httpstream.lua Sun Dec 19 20:28:58 2010 +0500 @@ -104,9 +104,12 @@ 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