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:
commit
bab9a10a4c
2 changed files with 6 additions and 1 deletions
5
changelogs/unreleased/mm12935.yml
Normal file
5
changelogs/unreleased/mm12935.yml
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
title: Remove Content-Type override for Mattermost OAuth login
|
||||
merge_request:
|
||||
author: Harrison Healey
|
||||
type: removed
|
|
@ -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']
|
||||
|
|
Loading…
Reference in a new issue