aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorKuk-Hyun Lee <[email protected]>2013-08-01 10:56:35 +0900
committerKuk-Hyun Lee <[email protected]>2013-08-01 10:56:35 +0900
commitddbe4e53b8eff53889664a92ed41b5310847bab7 (patch)
tree202bc5fcda86d8b58b8cec181a42f903a4b71ac8 /examples
parent5e5d8ab299a451ffbf0552bc2190a5fcbec08c16 (diff)
downloadcowboy-ddbe4e53b8eff53889664a92ed41b5310847bab7.tar.gz
cowboy-ddbe4e53b8eff53889664a92ed41b5310847bab7.tar.bz2
cowboy-ddbe4e53b8eff53889664a92ed41b5310847bab7.zip
Fix rest_pastebin example
Diffstat (limited to 'examples')
-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.