diff options
author | James Lopez <james@jameslopez.es> | 2018-02-14 14:59:11 +0100 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2018-02-14 14:59:11 +0100 |
commit | 0abd85f919053efa8a03add9ae43ce9ea2d02ae5 (patch) | |
tree | 9fe05fc39b53efab92c81e4818633cb36ff45265 /lib | |
parent | 2dc2bad6233e1e74c74c49af4be838e0a39dcd53 (diff) | |
download | gitlab-ce-0abd85f919053efa8a03add9ae43ce9ea2d02ae5.tar.gz |
refactor code based on feedback41899-api-endpoint-for-importing-a-project-export
Diffstat (limited to 'lib')
-rw-r--r-- | lib/api/project_import.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/project_import.rb b/lib/api/project_import.rb index 88fe1d2b5f5..a6da9b90fe3 100644 --- a/lib/api/project_import.rb +++ b/lib/api/project_import.rb @@ -31,7 +31,7 @@ module API success Entities::ProjectImportStatus end post 'import' do - render_api_error!('The file is invalid', 400) unless file_is_valid? + validate_file! Gitlab::QueryLimiting.whitelist('https://gitlab.com/gitlab-org/gitlab-ce/issues/42437') |