aboutsummaryrefslogtreecommitdiffstats
path: root/examples/rest_pastebin
diff options
context:
space:
mode:
Diffstat (limited to 'examples/rest_pastebin')
-rw-r--r--examples/rest_pastebin/src/toppage_handler.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/rest_pastebin/src/toppage_handler.erl b/examples/rest_pastebin/src/toppage_handler.erl
index 9267349..94f08aa 100644
--- a/examples/rest_pastebin/src/toppage_handler.erl
+++ b/examples/rest_pastebin/src/toppage_handler.erl
@@ -51,7 +51,7 @@ create_paste(Req, State) ->
ok = file:write_file(full_path(PasteID), Paste),
case cowboy_req:method(Req3) of
{<<"POST">>, Req4} ->
- {<<$/, PasteID/binary>>, Req4, State};
+ {{true, <<$/, PasteID/binary>>}, Req4, State};
{_, Req4} ->
{true, Req4, State}
end.