diff options
| author | Jasper Maes <jaspermaes.jm@gmail.com> | 2018-11-28 19:08:21 +0100 |
|---|---|---|
| committer | Jasper Maes <jaspermaes.jm@gmail.com> | 2018-11-29 08:05:13 +0100 |
| commit | 1bb4ad9262efde3b7aefddf849480a102763a68f (patch) | |
| tree | c8dfa743811928645c97ab3f813fe5101010a517 /app/controllers/admin | |
| parent | a5f4627857bddc7e431d0fca6f17560e4b07e0b9 (diff) | |
| download | gitlab-ce-1bb4ad9262efde3b7aefddf849480a102763a68f.tar.gz | |
Fix deprecation: render :text is deprecated because it does not actually render a text/plain response
Diffstat (limited to 'app/controllers/admin')
| -rw-r--r-- | app/controllers/admin/requests_profiles_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/admin/requests_profiles_controller.rb b/app/controllers/admin/requests_profiles_controller.rb index 64d74ae4231..57f7d3e3951 100644 --- a/app/controllers/admin/requests_profiles_controller.rb +++ b/app/controllers/admin/requests_profiles_controller.rb @@ -11,7 +11,7 @@ class Admin::RequestsProfilesController < Admin::ApplicationController profile = Gitlab::RequestProfiler::Profile.find(clean_name) if profile - render text: profile.content + render html: profile.content else redirect_to admin_requests_profiles_path, alert: 'Profile not found' end |
