From a50ccbf70e1f5ec4e4bb402da5fae42e2af31315 Mon Sep 17 00:00:00 2001 From: Takura Date: Mon, 11 May 2020 22:21:27 +0900 Subject: [PATCH] Fix incorrect API url to share pic see: https://github.com/michaelliao/sinaweibopy/issues/69 --- weibo.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/weibo.py b/weibo.py index e8f2660..371fc32 100644 --- a/weibo.py +++ b/weibo.py @@ -158,8 +158,6 @@ def _http_call(the_url, method, authorization, **kw): params = None boundary = None if method == _HTTP_UPLOAD: - # fix sina upload url: - the_url = the_url.replace('https://api.', 'https://upload.api.') params, boundary = _encode_multipart(**kw) else: params = _encode_params(**kw)