fix redirect after successful upload
authorLunar <lunar@anargeek.net>
Fri, 24 Feb 2012 20:44:29 +0000 (21:44 +0100)
committerLunar <lunar@anargeek.net>
Fri, 24 Feb 2012 20:44:29 +0000 (21:44 +0100)
lib/coquelicot/app.rb

index dfd5fc5..adc5a0b 100644 (file)
@@ -152,8 +152,8 @@ module Coquelicot
            "Length" => src.stat.size,
            "Content-Type" => params[:file][:type],
          })
-      redirect "ready/#{link}-#{pass}" if params[:file_key].nil? or params[:file_key].empty?
-      redirect "ready/#{link}"
+      redirect to("/ready/#{link}-#{pass}") if params[:file_key].nil? or params[:file_key].empty?
+      redirect to("/ready/#{link}")
     end
 
     def expired