Skip to content

Commit b1277b1

Browse files
committed
fixup validation oauth header
1 parent fabe8af commit b1277b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/lib/twitch/queries.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ class OAuthValidationQuery(JsonQuery):
201201
def __init__(self, token=None):
202202
_headers = {}
203203
if token:
204-
_headers['Authorization'] = token
204+
_headers['Authorization'] = 'OAuth {access_token}'.format(access_token=token)
205205
if 'Authorization' not in _headers:
206206
_headers.setdefault('Authorization', 'OAuth {access_token}'.format(access_token=OAUTH_TOKEN))
207207
super(JsonQuery, self).__init__(_oauthid_baseurl, _headers, {}, methods.GET)

0 commit comments

Comments
 (0)