diff options
author | haseeb <haseebeqx@gmail.com> | 2017-08-03 16:44:48 +0000 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-08-03 16:44:48 +0000 |
commit | 4974f1ef86f697fa410093720f51414791f210c6 (patch) | |
tree | ccf4e210bb38f31caa1bcf73f7569b9aad0cad36 /config/routes | |
parent | 29f1fa8250407067683cc0a58350ab4ef5ee3189 (diff) | |
download | gitlab-ce-4974f1ef86f697fa410093720f51414791f210c6.tar.gz |
fix #3686 make tarball download url to end with extension
Diffstat (limited to 'config/routes')
-rw-r--r-- | config/routes/repository.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/routes/repository.rb b/config/routes/repository.rb index edcf3ddf57b..2ba16035ece 100644 --- a/config/routes/repository.rb +++ b/config/routes/repository.rb @@ -2,7 +2,7 @@ resource :repository, only: [:create] do member do - get 'archive', constraints: { format: Gitlab::PathRegex.archive_formats_regex } + get ':ref/archive', constraints: { format: Gitlab::PathRegex.archive_formats_regex, ref: /.+/ }, action: 'archive', as: 'archive' end end |