From b3cee70ead899043cffd646fa87a9dc5aeffe8a4 Mon Sep 17 00:00:00 2001 From: Ilya Zhitomirskiy <ilya@laptop.(none)> Date: Wed, 15 Jun 2011 17:51:29 -0700 Subject: [PATCH] if the request is bad give it as a response --- app/controllers/authorizations_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/authorizations_controller.rb b/app/controllers/authorizations_controller.rb index 8cb37d130c..133d739f2e 100644 --- a/app/controllers/authorizations_controller.rb +++ b/app/controllers/authorizations_controller.rb @@ -20,8 +20,8 @@ class AuthorizationsController < ApplicationController end def token - unless(params[:type] == 'client_associate' && params[:manifest_url]) - render :text => "bad request", :status => 403 + if (!params[:type] == 'client_associate' || !params[:manifest_url]) + render :text => "bad request: #{params.inspect}", :status => 403 return end manifest = JSON.parse(RestClient.get(params[:manifest_url]).body) -- GitLab