BigW Consortium Gitlab

Commit 033a879c by Jacob Vosmaer Committed by GitLab

Fix NGINX API download regex

Users are allowed to supply namespace%2Fproject instead of a numeric ID
parent cb13980d
...@@ -125,7 +125,7 @@ server { ...@@ -125,7 +125,7 @@ server {
return 418; 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' 418 is a hack to re-use the @gitlab-git-http-server block
error_page 418 = @gitlab-git-http-server; error_page 418 = @gitlab-git-http-server;
return 418; return 418;
......
...@@ -172,7 +172,7 @@ server { ...@@ -172,7 +172,7 @@ server {
return 418; 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' 418 is a hack to re-use the @gitlab-git-http-server block
error_page 418 = @gitlab-git-http-server; error_page 418 = @gitlab-git-http-server;
return 418; return 418;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment