Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not send Content-Type header in AuthProvider GET requests #2386

Merged
merged 1 commit into from May 31, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions server/app/services/auth_provider.rb
Expand Up @@ -226,14 +226,14 @@ def get_token(code)
client.force_basic_auth = true
end

headers = { 'Accept' => 'application/json' }
headers['Content-Type'] = self.token_post_content_type unless token_method == :get

response = client.request(
token_method,
self.token_endpoint,
follow_redirect: false,
header: {
'Accept' => 'application/json',
'Content-Type' => self.token_post_content_type
},
header: headers,
body: body,
query: query
)
Expand Down