summaryrefslogtreecommitdiff
path: root/oauthlib/oauth2/rfc6749/grant_types/refresh_token.py
diff options
context:
space:
mode:
authorOmer Katz <omer.drow@gmail.com>2018-12-17 14:53:00 +0200
committerOmer Katz <omer.drow@gmail.com>2018-12-17 14:53:00 +0200
commit9faf472795c49008cc9b727b865b3a13d72ede50 (patch)
treef5dcdde39bd02bb76d7211198d7c12450ef86b45 /oauthlib/oauth2/rfc6749/grant_types/refresh_token.py
parent9130131f0718d783c7ae326b786c3aa95b269047 (diff)
downloadoauthlib-9faf472795c49008cc9b727b865b3a13d72ede50.tar.gz
Extract default grant headers to helper method.
Diffstat (limited to 'oauthlib/oauth2/rfc6749/grant_types/refresh_token.py')
-rw-r--r--oauthlib/oauth2/rfc6749/grant_types/refresh_token.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/oauthlib/oauth2/rfc6749/grant_types/refresh_token.py b/oauthlib/oauth2/rfc6749/grant_types/refresh_token.py
index 5f7382a..78963c3 100644
--- a/oauthlib/oauth2/rfc6749/grant_types/refresh_token.py
+++ b/oauthlib/oauth2/rfc6749/grant_types/refresh_token.py
@@ -54,11 +54,7 @@ class RefreshTokenGrant(GrantTypeBase):
.. _`Section 5.1`: https://tools.ietf.org/html/rfc6749#section-5.1
.. _`Section 5.2`: https://tools.ietf.org/html/rfc6749#section-5.2
"""
- headers = {
- 'Content-Type': 'application/json',
- 'Cache-Control': 'no-store',
- 'Pragma': 'no-cache',
- }
+ headers = self._get_default_headers()
try:
log.debug('Validating refresh token request, %r.', request)
self.validate_token_request(request)