aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--server/sonar-web/src/main/webapp/WEB-INF/app/controllers/web_api_controller.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/web_api_controller.rb b/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/web_api_controller.rb
index d9fe271a948..3d00a1736ba 100644
--- a/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/web_api_controller.rb
+++ b/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/web_api_controller.rb
@@ -21,7 +21,8 @@
class WebApiController < ApplicationController
def index
-
+ # Fix a very strange bug that generates a server error when the format parameter is set
+ params[:format] = nil if params[:format]
end
end