add info that upload is forbidden
authormh <mh@immerda.ch>
Wed, 10 Aug 2011 18:03:35 +0000 (20:03 +0200)
committermh <mh@immerda.ch>
Wed, 10 Aug 2011 18:03:35 +0000 (20:03 +0200)
coquelicot_app.rb

index 27e5733..0c70731 100644 (file)
@@ -101,7 +101,7 @@ module Coquelicot
       # if JS is disabled upload_token might be nil
       params['upload_token'] = JSON.parse(params['upload_token']) unless params['upload_token'].nil?
       unless authenticate(params) then
-        error 403
+        error 403, "Forbidden"
       end
       if params[:file] then
         tmpfile = params[:file][:tempfile]