aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2013-08-10 16:31:16 +0200
committerLoïc Hoguin <[email protected]>2013-08-10 16:31:16 +0200
commit3b4c0588e9bb98307576f7d6e0b52ea434138e62 (patch)
tree202bc5fcda86d8b58b8cec181a42f903a4b71ac8
parent5e5d8ab299a451ffbf0552bc2190a5fcbec08c16 (diff)
parentddbe4e53b8eff53889664a92ed41b5310847bab7 (diff)
downloadcowboy-3b4c0588e9bb98307576f7d6e0b52ea434138e62.tar.gz
cowboy-3b4c0588e9bb98307576f7d6e0b52ea434138e62.tar.bz2
cowboy-3b4c0588e9bb98307576f7d6e0b52ea434138e62.zip
Merge branch 'patched' of git://github.com/kukhyun/cowboy
-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.