diff options
author | Kuk-Hyun Lee <[email protected]> | 2013-08-01 10:56:35 +0900 |
---|---|---|
committer | Kuk-Hyun Lee <[email protected]> | 2013-08-01 10:56:35 +0900 |
commit | ddbe4e53b8eff53889664a92ed41b5310847bab7 (patch) | |
tree | 202bc5fcda86d8b58b8cec181a42f903a4b71ac8 /examples/rest_pastebin/src/toppage_handler.erl | |
parent | 5e5d8ab299a451ffbf0552bc2190a5fcbec08c16 (diff) | |
download | cowboy-ddbe4e53b8eff53889664a92ed41b5310847bab7.tar.gz cowboy-ddbe4e53b8eff53889664a92ed41b5310847bab7.tar.bz2 cowboy-ddbe4e53b8eff53889664a92ed41b5310847bab7.zip |
Fix rest_pastebin example
Diffstat (limited to 'examples/rest_pastebin/src/toppage_handler.erl')
-rw-r--r-- | examples/rest_pastebin/src/toppage_handler.erl | 2 |
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. |