util.httpstream: For HTTP client responses, changing properties responseversion and responseheaders to httpversion and httpheaders, to match HTTP server requests.

Sun, 19 Dec 2010 20:28:58 +0500

author
Waqas Hussain <waqas20@gmail.com>
date
Sun, 19 Dec 2010 20:28:58 +0500
changeset 3921
70dd7f6026bd
parent 3920
215c0ec63816
child 3922
b77bafa4c502

util.httpstream: For HTTP client responses, changing properties responseversion and responseheaders to httpversion and httpheaders, to match HTTP server requests.

util/httpstream.lua file | annotate | diff | comparison | revisions
--- 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

mercurial