Diff

mod_websocket/mod_websocket.lua @ 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
parent 910:c469a2b2d77d
child 1025:b56a9aa171b3
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"));