Skip to content

Commit

Permalink
Fix PAPI encoding BUG, bump version to 3.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
upbit committed Dec 17, 2016
1 parent af9c893 commit 83ff027
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pixivpy3/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
Pixiv API library
"""
__version__ = '3.2.1'
__version__ = '3.2.2'

from .papi import PixivAPI
from .aapi import AppPixivAPI
Expand Down
4 changes: 3 additions & 1 deletion pixivpy3/papi.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ def auth_requests_call(self, method, url, headers={}, params=None, data=None):
headers['Referer'] = 'http://spapi.pixiv.net/'
headers['User-Agent'] = 'PixivIOSApp/5.8.7'
headers['Authorization'] = 'Bearer %s' % self.access_token
return self.requests_call(method, url, headers, params, data)
r = self.requests_call(method, url, headers, params, data)
r.encoding = 'utf-8' # Manually set the encoding due to #11 #18 #26, thanks @Xdynix
return r

def parse_result(self, req):
try:
Expand Down

0 comments on commit 83ff027

Please sign in to comment.