Skip to content

Commit

Permalink
fix: 修复 #137 #138 提到的,P站增加CloudFlare导致获取hosts失效问题
Browse files Browse the repository at this point in the history
  • Loading branch information
upbit authored Oct 11, 2020
1 parent 047a0b7 commit bcceffc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example_bypass_sni.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

def main():
api = ByPassSniApi() # Same as AppPixivAPI, but bypass the GFW
api.require_appapi_hosts()
api.require_appapi_hosts(hostname="public-api.secure.pixiv.net")
# api.set_additional_headers({'Accept-Language':'en-US'})
api.set_accept_language('en-us')

Expand Down

0 comments on commit bcceffc

Please sign in to comment.