Skip to content

Commit 5b6b37a

Browse files
authored
Merge pull request #117 from anxdpanic/pr_isengard
fixup validation oauth header
2 parents 3267c90 + b1277b1 commit 5b6b37a

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)