Remove Content-Type override for Mattermost OAuth login

This commit is contained in:
Harrison Healey 2019-05-14 14:38:32 -04:00
parent 0c63ad850a
commit 61ea0e1a94
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']