From b83f2c9609e2b80abeca2e2776f79cc5f0bdfc16 Mon Sep 17 00:00:00 2001 From: Jesse Gumm Date: Fri, 9 Jan 2015 18:20:27 -0600 Subject: [PATCH] Update comments in wf_cookies about headers --- src/lib/wf_cookies.erl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/wf_cookies.erl b/src/lib/wf_cookies.erl index 5c2e1d9d..1a52c9f0 100644 --- a/src/lib/wf_cookies.erl +++ b/src/lib/wf_cookies.erl @@ -33,7 +33,8 @@ set_cookie(Cookie, Value, Path, MinutesToLive) -> set_cookie(postback_websocket, Cookie, Value, Path, MinutesToLive) -> %% Websocket connections have already send the headers and can't set the - %% cookies in a frame, so we need to set these cookies with javascript + %% cookies as a "frame header" (such a thing doesn't exist), so we need to + %% set these cookies with javascript set_websocket_cookie(Cookie, Value, Path, MinutesToLive); set_cookie(_Type, Cookie, Value, Path, MinutesToLive) -> set_bridge_cookie(Cookie, Value, Path, MinutesToLive).