From f9bd5d1061813be1405977af57390ca7af40e39e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Mon, 19 Dec 2011 08:56:48 +0100 Subject: Add missing p_headers and cookies to compacted values --- src/cowboy_http_req.erl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/cowboy_http_req.erl') diff --git a/src/cowboy_http_req.erl b/src/cowboy_http_req.erl index e40bbc6..c302100 100644 --- a/src/cowboy_http_req.erl +++ b/src/cowboy_http_req.erl @@ -503,7 +503,8 @@ upgrade_reply(Status, Headers, Req=#http_req{socket=Socket, transport=Transport, compact(Req) -> Req#http_req{host=undefined, host_info=undefined, path=undefined, path_info=undefined, qs_vals=undefined, - bindings=undefined, headers=[]}. + bindings=undefined, headers=[], + p_headers=[], cookies=[]}. %% Internal. -- cgit v1.2.3