From 63ed80321b00b96b79e064d1932528b8617d1625 Mon Sep 17 00:00:00 2001 From: Jacob Vosmaer Date: Wed, 8 Jun 2016 18:36:43 +0200 Subject: Skip authenticity token checks for Git HTTP --- app/controllers/projects/git_http_controller.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/controllers/projects/git_http_controller.rb b/app/controllers/projects/git_http_controller.rb index 380139a9c30..348d6cf4d96 100644 --- a/app/controllers/projects/git_http_controller.rb +++ b/app/controllers/projects/git_http_controller.rb @@ -1,6 +1,8 @@ class Projects::GitHttpController < Projects::ApplicationController attr_reader :user + # Git clients will not know what authenticity token to send along + skip_before_action :verify_authenticity_token skip_before_action :repository before_action :authenticate_user before_action :ensure_project_found! -- cgit v1.2.1