Merge branch 'mm12935' into 'master'

Remove Content-Type override for Mattermost OAuth login

Closes #46810

See merge request gitlab-org/gitlab-ce!28374
This commit is contained in:
Jan Provaznik 2019-05-17 14:48:27 +00:00
commit bab9a10a4c
2 changed files with 6 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
title: Remove Content-Type override for Mattermost OAuth login
merge_request:
author: Harrison Healey
type: removed

View file

@ -122,7 +122,7 @@ module Mattermost
@oauth_uri = nil
response = get('/oauth/gitlab/login', follow_redirects: false, format: 'text/html')
response = get('/oauth/gitlab/login', follow_redirects: false)
return unless (300...400) === response.code
redirect_uri = response.headers['location']