aboutsummaryrefslogtreecommitdiffstats
path: root/src/cowboy_http_req.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2011-12-19 08:56:48 +0100
committerLoïc Hoguin <[email protected]>2011-12-19 08:56:48 +0100
commitf9bd5d1061813be1405977af57390ca7af40e39e (patch)
tree89289c9ecac40acbb50c625da19b1a5d357b69dd /src/cowboy_http_req.erl
parent740931131b06bfc3ec830312d52d87ab7e8a932d (diff)
downloadcowboy-f9bd5d1061813be1405977af57390ca7af40e39e.tar.gz
cowboy-f9bd5d1061813be1405977af57390ca7af40e39e.tar.bz2
cowboy-f9bd5d1061813be1405977af57390ca7af40e39e.zip
Add missing p_headers and cookies to compacted values
Diffstat (limited to 'src/cowboy_http_req.erl')
-rw-r--r--src/cowboy_http_req.erl3
1 files changed, 2 insertions, 1 deletions
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.