Permalink
Browse files

#8 Eventsource requires one leading new line, not two.

  • Loading branch information...
1 parent afdfee9 commit a00cab5da5c070a2a72da9fca03b28c49b6d4993 @majek majek committed Oct 10, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/sockjs_filters.erl
View
@@ -156,7 +156,7 @@ iframe(Req, Headers, _Server, _SessionId) ->
eventsource(Req, Headers, _Server, SessionId) ->
Req1 = headers(Req, Headers, "text/event-stream; charset=UTF-8"),
- chunk(Req1, <<$\r, $\n, $\r, $\n>>),
+ chunk(Req1, <<$\r, $\n>>),
reply_loop(Req1, SessionId, true, fun fmt_eventsource/1).
htmlfile(Req, Headers, _Server, SessionId) ->

0 comments on commit a00cab5

Please sign in to comment.