Browse Source

sending auth token on each EV request is protocol violation:

* prolongate should be implemented in a different way
* for now simple protocol check, assume nitro:auth is effectful
5HT 3 years ago
parent
commit
0db8b60e81
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/nitro_n2o.erl

+ 2 - 1
src/nitro_n2o.erl

@@ -77,7 +77,8 @@ html_events(#pickle{source = Source, pickled = Pickled,
                   <<>>;
               #ev{} ->
                   render_ev(Ev, Source, Linked, State),
-                  nitro:authenticate([], Token);
+                  nitro:authenticate([], Token),
+                  <<>>;
               _CustomEnvelop -> %?LOG_ERROR("EV expected: ~p~n",[CustomEnvelop]),
                   {error, "EV expected"}
           end,