Skip to content
Snippets Groups Projects
Commit 63ed8032 authored by Jacob Vosmaer (GitLab)'s avatar Jacob Vosmaer (GitLab) Committed by Robert Speicher
Browse files

Skip authenticity token checks for Git HTTP

parent 53498e42
No related branches found
No related tags found
No related merge requests found
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!
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment