0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-16 05:00:24 +00:00

Merge branch 'patched' of git://github.com/kukhyun/cowboy

This commit is contained in:
Loïc Hoguin 2013-08-10 16:31:16 +02:00
commit 3b4c0588e9

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.