From 97460a599377eab084ffe99588b2c24bab23c27d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Thu, 6 Oct 2011 01:07:49 +0200 Subject: Fix a crash in websocket_handshake when cowboy_http_req:compact/1 is used Also add a call to compact/1 in the websocket test handler so we may catch bugs related to it faster later on. --- src/cowboy_http_req.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cowboy_http_req.erl') diff --git a/src/cowboy_http_req.erl b/src/cowboy_http_req.erl index 889fb10..66f2da4 100644 --- a/src/cowboy_http_req.erl +++ b/src/cowboy_http_req.erl @@ -366,7 +366,7 @@ chunk(Data, #http_req{socket=Socket, transport=Transport, resp_state=chunks}) -> -spec compact(#http_req{}) -> #http_req{}. compact(Req) -> Req#http_req{host=undefined, host_info=undefined, path=undefined, - path_info=undefined, qs_vals=undefined, raw_qs=undefined, + path_info=undefined, qs_vals=undefined, bindings=undefined, headers=[]}. %% Internal. -- cgit v1.2.3