Browse Source

Fix rest_pastebin example

Kuk-Hyun Lee 12 years ago
parent
commit
ddbe4e53b8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      examples/rest_pastebin/src/toppage_handler.erl

+ 1 - 1
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.