0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 20:30:23 +00:00

Fix rest_pastebin example

This commit is contained in:
Kuk-Hyun Lee 2013-08-01 10:56:35 +09:00
parent 5e5d8ab299
commit ddbe4e53b8

View file

@ -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.