Skip to content
Snippets Groups Projects
Commit 033a879c authored by Jacob Vosmaer's avatar Jacob Vosmaer Committed by GitLab
Browse files

Fix NGINX API download regex

Users are allowed to supply namespace%2Fproject instead of a numeric ID
parent cb13980d
Branches
Tags
1 merge request!1548Let gitlab-git-http-server handle archive downloads
Pipeline #
Loading
Loading
@@ -125,7 +125,7 @@ server {
return 418;
}
 
location ~ ^/api/v3/projects/[0-9]+/repository/archive {
location ~ ^/api/v3/projects/.*/repository/archive {
# 'Error' 418 is a hack to re-use the @gitlab-git-http-server block
error_page 418 = @gitlab-git-http-server;
return 418;
Loading
Loading
Loading
Loading
@@ -172,7 +172,7 @@ server {
return 418;
}
 
location ~ ^/api/v3/projects/[0-9]+/repository/archive {
location ~ ^/api/v3/projects/.*/repository/archive {
# 'Error' 418 is a hack to re-use the @gitlab-git-http-server block
error_page 418 = @gitlab-git-http-server;
return 418;
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment