diff options
Diffstat (limited to 'examples/websocket/src/toppage_handler.erl')
-rw-r--r-- | examples/websocket/src/toppage_handler.erl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/websocket/src/toppage_handler.erl b/examples/websocket/src/toppage_handler.erl index 63099b0..b315a19 100644 --- a/examples/websocket/src/toppage_handler.erl +++ b/examples/websocket/src/toppage_handler.erl @@ -11,7 +11,9 @@ init(_Transport, Req, []) -> handle(Req, State) -> Html = get_html(), - {ok, Req2} = cowboy_req:reply(200, [], Html, Req), + {ok, Req2} = cowboy_req:reply(200, + [{<<"content-type">>, <<"text/html">>}], + Html, Req), {ok, Req2, State}. terminate(_Reason, _Req, _State) -> |