Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kazuhiko Shiozaki
gitlab-ce
Commits
033a879c
Commit
033a879c
authored
Oct 14, 2015
by
Jacob Vosmaer
Committed by
GitLab
Oct 14, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix NGINX API download regex
Users are allowed to supply namespace%2Fproject instead of a numeric ID
parent
cb13980d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
lib/support/nginx/gitlab
lib/support/nginx/gitlab
+1
-1
lib/support/nginx/gitlab-ssl
lib/support/nginx/gitlab-ssl
+1
-1
No files found.
lib/support/nginx/gitlab
View file @
033a879c
...
@@ -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;
...
...
lib/support/nginx/gitlab-ssl
View file @
033a879c
...
@@ -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;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment