Changeset

969:8eba9d4809d2

mod_websocket: Set status_code instead of status
author Florian Zeitz <florob@babelmonkeys.de>
date Sat, 06 Apr 2013 21:39:20 +0200
parents 968:f3b0ddeebd9d
children 970:adcb751f22f3
files mod_websocket/mod_websocket.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_websocket/mod_websocket.lua	Sat Apr 06 14:03:10 2013 +0100
+++ b/mod_websocket/mod_websocket.lua	Sat Apr 06 21:39:20 2013 +0200
@@ -233,7 +233,7 @@
 		return build_frame({ FIN = true, opcode = 0x01, data = tostring(data)});
 	end);
 
-	response.status = "101 Switching Protocols";
+	response.status_code = 101;
 	response.headers.upgrade = "websocket";
 	response.headers.connection = "Upgrade";
 	response.headers.sec_webSocket_accept = base64(sha1(request.headers.sec_websocket_key .. "258EAFA5-E914-47DA-95CA-C5AB0DC85B11"));