diff options
| author | Douwe Maan <douwe@gitlab.com> | 2018-01-15 09:10:52 +0000 |
|---|---|---|
| committer | Douwe Maan <douwe@gitlab.com> | 2018-01-15 09:10:52 +0000 |
| commit | f402762d2c315f462fb3c805990b9842953bc8dc (patch) | |
| tree | 10f5e0d38aa4ad77f76ed56c65dd0483fd4e5e58 /lib | |
| parent | b3d85110d207a8a95650edf37b97eb32f539d962 (diff) | |
| parent | 4f6e0379b477d621b6bbbb385a482c55e65379cf (diff) | |
| download | gitlab-ce-f402762d2c315f462fb3c805990b9842953bc8dc.tar.gz | |
Merge branch 'fj-41598-fixing-request-mime-type' into 'master'
Fixing request json mime type
Closes #41598
See merge request gitlab-org/gitlab-ce!16427
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/gitlab/auth/user_auth_finders.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/gitlab/auth/user_auth_finders.rb b/lib/gitlab/auth/user_auth_finders.rb index b4114a3ac96..cf02030c577 100644 --- a/lib/gitlab/auth/user_auth_finders.rb +++ b/lib/gitlab/auth/user_auth_finders.rb @@ -96,9 +96,7 @@ module Gitlab end def ensure_action_dispatch_request(request) - return request if request.is_a?(ActionDispatch::Request) - - ActionDispatch::Request.new(request.env) + ActionDispatch::Request.new(request.env.dup) end def current_request |
