From 7b7bba9da8491584af848d53eaa8bc4ec7a71bd3 Mon Sep 17 00:00:00 2001 From: Starry-OvO Date: Tue, 17 Jan 2023 10:38:06 +0800 Subject: [PATCH] feat: api with `BDUSS` update to https connection --- aiotieba/__version__.py | 2 +- aiotieba/client/add_post/_api.py | 2 +- aiotieba/client/agree/_api.py | 2 +- aiotieba/client/block/_api.py | 2 +- aiotieba/client/del_post/_api.py | 2 +- aiotieba/client/del_posts/_api.py | 2 +- aiotieba/client/del_thread/_api.py | 2 +- aiotieba/client/del_threads/_api.py | 2 +- aiotieba/client/dislike_forum/_api.py | 2 +- aiotieba/client/follow_forum/_api.py | 2 +- aiotieba/client/follow_user/_api.py | 2 +- aiotieba/client/get_ats/_api.py | 2 +- aiotieba/client/get_cid/_api.py | 2 +- aiotieba/client/get_dislike_forums/_api.py | 2 +- aiotieba/client/get_fans/_api.py | 2 +- aiotieba/client/get_follow_forums/_api.py | 2 +- aiotieba/client/get_follows/_api.py | 2 +- aiotieba/client/get_newmsg/_api.py | 2 +- aiotieba/client/get_posts/_api.py | 2 +- aiotieba/client/get_recom_status/_api.py | 2 +- aiotieba/client/get_replys/_api.py | 2 +- aiotieba/client/get_selfinfo_initNickname/_api.py | 2 +- aiotieba/client/get_square_forums/_api.py | 2 +- aiotieba/client/get_statistics/_api.py | 2 +- aiotieba/client/get_tab_map/_api.py | 2 +- aiotieba/client/get_threads/_api.py | 2 +- aiotieba/client/get_user_contents/get_posts/_api.py | 2 +- aiotieba/client/get_user_contents/get_threads/_api.py | 2 +- aiotieba/client/good/_api.py | 2 +- aiotieba/client/login/_api.py | 2 +- aiotieba/client/move/_api.py | 2 +- aiotieba/client/recommend/_api.py | 2 +- aiotieba/client/remove_fan/_api.py | 2 +- aiotieba/client/set_privacy/_api.py | 2 +- aiotieba/client/sign_forum/_api.py | 2 +- aiotieba/client/top/_api.py | 2 +- aiotieba/client/undislike_forum/_api.py | 2 +- aiotieba/client/unfollow_forum/_api.py | 2 +- aiotieba/client/unfollow_user/_api.py | 2 +- aiotieba/client/ungood/_api.py | 2 +- aiotieba/client/untop/_api.py | 2 +- 41 files changed, 41 insertions(+), 41 deletions(-) diff --git a/aiotieba/__version__.py b/aiotieba/__version__.py index 72bb4923..50eb54dd 100644 --- a/aiotieba/__version__.py +++ b/aiotieba/__version__.py @@ -1 +1 @@ -__version__ = "3.0.1a0" +__version__ = "3.0.1a1" diff --git a/aiotieba/client/add_post/_api.py b/aiotieba/client/add_post/_api.py index 4b78123d..0b3db959 100644 --- a/aiotieba/client/add_post/_api.py +++ b/aiotieba/client/add_post/_api.py @@ -42,7 +42,7 @@ def pack_request( request = pack_form_request( client, - url("http", APP_BASE_HOST, "/c/c/post/add"), + url("https", APP_BASE_HOST, "/c/c/post/add"), sign(data), ) diff --git a/aiotieba/client/agree/_api.py b/aiotieba/client/agree/_api.py index 6723e396..b037623d 100644 --- a/aiotieba/client/agree/_api.py +++ b/aiotieba/client/agree/_api.py @@ -23,7 +23,7 @@ def pack_request( request = pack_form_request( client, - url("http", APP_BASE_HOST, "/c/c/agree/opAgree"), + url("https", APP_BASE_HOST, "/c/c/agree/opAgree"), sign(data), ) diff --git a/aiotieba/client/block/_api.py b/aiotieba/client/block/_api.py index 438cc574..24e3325b 100644 --- a/aiotieba/client/block/_api.py +++ b/aiotieba/client/block/_api.py @@ -23,7 +23,7 @@ def pack_request( request = pack_form_request( client, - url("http", APP_BASE_HOST, "/c/c/bawu/commitprison"), + url("https", APP_BASE_HOST, "/c/c/bawu/commitprison"), sign(data), ) diff --git a/aiotieba/client/del_post/_api.py b/aiotieba/client/del_post/_api.py index 19b830ab..b262f110 100644 --- a/aiotieba/client/del_post/_api.py +++ b/aiotieba/client/del_post/_api.py @@ -17,7 +17,7 @@ def pack_request(client: httpx.AsyncClient, core: TiebaCore, tbs: str, fid: int, request = pack_form_request( client, - url("http", APP_BASE_HOST, "/c/c/bawu/delpost"), + url("https", APP_BASE_HOST, "/c/c/bawu/delpost"), sign(data), ) diff --git a/aiotieba/client/del_posts/_api.py b/aiotieba/client/del_posts/_api.py index 8be2320d..ef0be85f 100644 --- a/aiotieba/client/del_posts/_api.py +++ b/aiotieba/client/del_posts/_api.py @@ -22,7 +22,7 @@ def pack_request( request = pack_form_request( client, - url("http", APP_BASE_HOST, "/c/c/bawu/multiDelPost"), + url("https", APP_BASE_HOST, "/c/c/bawu/multiDelPost"), sign(data), ) diff --git a/aiotieba/client/del_thread/_api.py b/aiotieba/client/del_thread/_api.py index 32d94ba9..c5819fd7 100644 --- a/aiotieba/client/del_thread/_api.py +++ b/aiotieba/client/del_thread/_api.py @@ -19,7 +19,7 @@ def pack_request( request = pack_form_request( client, - url("http", APP_BASE_HOST, "/c/c/bawu/delthread"), + url("https", APP_BASE_HOST, "/c/c/bawu/delthread"), sign(data), ) diff --git a/aiotieba/client/del_threads/_api.py b/aiotieba/client/del_threads/_api.py index cee544ad..ca8fe884 100644 --- a/aiotieba/client/del_threads/_api.py +++ b/aiotieba/client/del_threads/_api.py @@ -21,7 +21,7 @@ def pack_request( request = pack_form_request( client, - url("http", APP_BASE_HOST, "/c/c/bawu/multiDelThread"), + url("https", APP_BASE_HOST, "/c/c/bawu/multiDelThread"), sign(data), ) diff --git a/aiotieba/client/dislike_forum/_api.py b/aiotieba/client/dislike_forum/_api.py index 4c53f904..71678824 100644 --- a/aiotieba/client/dislike_forum/_api.py +++ b/aiotieba/client/dislike_forum/_api.py @@ -21,7 +21,7 @@ def pack_request(client: httpx.AsyncClient, core: TiebaCore, fid: int) -> httpx. request = pack_form_request( client, - url("http", APP_BASE_HOST, "/c/c/excellent/submitDislike"), + url("https", APP_BASE_HOST, "/c/c/excellent/submitDislike"), sign(data), ) diff --git a/aiotieba/client/follow_forum/_api.py b/aiotieba/client/follow_forum/_api.py index a4a86366..a051060f 100644 --- a/aiotieba/client/follow_forum/_api.py +++ b/aiotieba/client/follow_forum/_api.py @@ -15,7 +15,7 @@ def pack_request(client: httpx.AsyncClient, core: TiebaCore, tbs: str, fid: int) request = pack_form_request( client, - url("http", APP_BASE_HOST, "/c/c/forum/like"), + url("https", APP_BASE_HOST, "/c/c/forum/like"), sign(data), ) diff --git a/aiotieba/client/follow_user/_api.py b/aiotieba/client/follow_user/_api.py index 9ab2aec3..0a8f2e7c 100644 --- a/aiotieba/client/follow_user/_api.py +++ b/aiotieba/client/follow_user/_api.py @@ -15,7 +15,7 @@ def pack_request(client: httpx.AsyncClient, core: TiebaCore, tbs: str, portrait: request = pack_form_request( client, - url("http", APP_BASE_HOST, "/c/c/user/follow"), + url("https", APP_BASE_HOST, "/c/c/user/follow"), sign(data), ) diff --git a/aiotieba/client/get_ats/_api.py b/aiotieba/client/get_ats/_api.py index 43634d79..9f02f045 100644 --- a/aiotieba/client/get_ats/_api.py +++ b/aiotieba/client/get_ats/_api.py @@ -16,7 +16,7 @@ def pack_request(client: httpx.AsyncClient, core: TiebaCore, pn: int) -> httpx.R request = pack_form_request( client, - url("http", APP_BASE_HOST, "/c/u/feed/atme"), + url("https", APP_BASE_HOST, "/c/u/feed/atme"), sign(data), ) diff --git a/aiotieba/client/get_cid/_api.py b/aiotieba/client/get_cid/_api.py index 369fcf5b..153f4497 100644 --- a/aiotieba/client/get_cid/_api.py +++ b/aiotieba/client/get_cid/_api.py @@ -16,7 +16,7 @@ def pack_request(client: httpx.AsyncClient, core: TiebaCore, fname: str) -> http request = pack_form_request( client, - url("http", APP_BASE_HOST, "/c/c/bawu/goodlist"), + url("https", APP_BASE_HOST, "/c/c/bawu/goodlist"), sign(data), ) diff --git a/aiotieba/client/get_dislike_forums/_api.py b/aiotieba/client/get_dislike_forums/_api.py index 4d3d697e..b9a81014 100644 --- a/aiotieba/client/get_dislike_forums/_api.py +++ b/aiotieba/client/get_dislike_forums/_api.py @@ -21,7 +21,7 @@ def pack_request(client: httpx.AsyncClient, core: TiebaCore, pn: int, rn: int) - request = pack_proto_request( client, - url("http", APP_BASE_HOST, "/c/u/user/getDislikeList", "cmd=309692"), + url("https", APP_BASE_HOST, "/c/u/user/getDislikeList", "cmd=309692"), pack_proto(core, pn, rn), ) diff --git a/aiotieba/client/get_fans/_api.py b/aiotieba/client/get_fans/_api.py index 68e9a964..0f1a5396 100644 --- a/aiotieba/client/get_fans/_api.py +++ b/aiotieba/client/get_fans/_api.py @@ -17,7 +17,7 @@ def pack_request(client: httpx.AsyncClient, core: TiebaCore, user_id: int, pn: i request = pack_form_request( client, - url("http", APP_BASE_HOST, "/c/u/fans/page"), + url("https", APP_BASE_HOST, "/c/u/fans/page"), sign(data), ) diff --git a/aiotieba/client/get_follow_forums/_api.py b/aiotieba/client/get_follow_forums/_api.py index c631d76e..78e1a5b4 100644 --- a/aiotieba/client/get_follow_forums/_api.py +++ b/aiotieba/client/get_follow_forums/_api.py @@ -18,7 +18,7 @@ def pack_request(client: httpx.AsyncClient, core: TiebaCore, user_id: int, pn: i request = pack_form_request( client, - url("http", APP_BASE_HOST, "/c/f/forum/like"), + url("https", APP_BASE_HOST, "/c/f/forum/like"), sign(data), ) diff --git a/aiotieba/client/get_follows/_api.py b/aiotieba/client/get_follows/_api.py index 8e6459c6..7854236c 100644 --- a/aiotieba/client/get_follows/_api.py +++ b/aiotieba/client/get_follows/_api.py @@ -17,7 +17,7 @@ def pack_request(client: httpx.AsyncClient, core: TiebaCore, user_id: int, pn: i request = pack_form_request( client, - url("http", APP_BASE_HOST, "/c/u/follow/followList"), + url("https", APP_BASE_HOST, "/c/u/follow/followList"), sign(data), ) diff --git a/aiotieba/client/get_newmsg/_api.py b/aiotieba/client/get_newmsg/_api.py index 570af642..bdfdc0a8 100644 --- a/aiotieba/client/get_newmsg/_api.py +++ b/aiotieba/client/get_newmsg/_api.py @@ -13,7 +13,7 @@ def pack_request(client: httpx.AsyncClient, core: TiebaCore) -> httpx.Request: request = pack_form_request( client, - url("http", APP_BASE_HOST, "/c/s/msg"), + url("https", APP_BASE_HOST, "/c/s/msg"), sign(data), ) diff --git a/aiotieba/client/get_posts/_api.py b/aiotieba/client/get_posts/_api.py index c747ecd3..20b6b5cb 100644 --- a/aiotieba/client/get_posts/_api.py +++ b/aiotieba/client/get_posts/_api.py @@ -53,7 +53,7 @@ def pack_request( request = pack_proto_request( client, - url("http", APP_BASE_HOST, "/c/f/pb/page", "cmd=302001"), + url("https", APP_BASE_HOST, "/c/f/pb/page", "cmd=302001"), pack_proto( core, tid, pn, rn, sort, only_thread_author, with_comments, comment_sort_by_agree, comment_rn, is_fold ), diff --git a/aiotieba/client/get_recom_status/_api.py b/aiotieba/client/get_recom_status/_api.py index ab3453d5..888840de 100644 --- a/aiotieba/client/get_recom_status/_api.py +++ b/aiotieba/client/get_recom_status/_api.py @@ -18,7 +18,7 @@ def pack_request(client: httpx.AsyncClient, core: TiebaCore, fid: int) -> httpx. request = pack_form_request( client, - url("http", APP_BASE_HOST, "/c/f/bawu/getRecomThreadList"), + url("https", APP_BASE_HOST, "/c/f/bawu/getRecomThreadList"), sign(data), ) diff --git a/aiotieba/client/get_replys/_api.py b/aiotieba/client/get_replys/_api.py index 5ecbd489..8b09eca0 100644 --- a/aiotieba/client/get_replys/_api.py +++ b/aiotieba/client/get_replys/_api.py @@ -20,7 +20,7 @@ def pack_request(client: httpx.AsyncClient, core: TiebaCore, pn: int) -> httpx.R request = pack_proto_request( client, - url("http", APP_BASE_HOST, "/c/u/feed/replyme", "cmd=303007"), + url("https", APP_BASE_HOST, "/c/u/feed/replyme", "cmd=303007"), pack_proto(core, pn), ) diff --git a/aiotieba/client/get_selfinfo_initNickname/_api.py b/aiotieba/client/get_selfinfo_initNickname/_api.py index b8a488c1..de4c00da 100644 --- a/aiotieba/client/get_selfinfo_initNickname/_api.py +++ b/aiotieba/client/get_selfinfo_initNickname/_api.py @@ -15,7 +15,7 @@ def pack_request(client: httpx.AsyncClient, core: TiebaCore) -> httpx.Request: request = pack_form_request( client, - url("http", APP_BASE_HOST, "/c/s/initNickname"), + url("https", APP_BASE_HOST, "/c/s/initNickname"), sign(data), ) diff --git a/aiotieba/client/get_square_forums/_api.py b/aiotieba/client/get_square_forums/_api.py index 490f4b15..7bae32be 100644 --- a/aiotieba/client/get_square_forums/_api.py +++ b/aiotieba/client/get_square_forums/_api.py @@ -21,7 +21,7 @@ def pack_proto(core: TiebaCore, cname: str, pn: int, rn: int) -> bytes: def pack_request(client: httpx.AsyncClient, core: TiebaCore, cname: str, pn: int, rn: int) -> httpx.Request: request = pack_proto_request( client, - url("http", APP_BASE_HOST, "/c/f/forum/getForumSquare", "cmd=309653"), + url("https", APP_BASE_HOST, "/c/f/forum/getForumSquare", "cmd=309653"), pack_proto(core, cname, pn, rn), ) diff --git a/aiotieba/client/get_statistics/_api.py b/aiotieba/client/get_statistics/_api.py index 6e31bd80..c26160a2 100644 --- a/aiotieba/client/get_statistics/_api.py +++ b/aiotieba/client/get_statistics/_api.py @@ -16,7 +16,7 @@ def pack_request(client: httpx.AsyncClient, core: TiebaCore, fid: int) -> httpx. ] request = pack_form_request( client, - url("http", APP_BASE_HOST, "/c/f/forum/getforumdata"), + url("https", APP_BASE_HOST, "/c/f/forum/getforumdata"), sign(data), ) diff --git a/aiotieba/client/get_tab_map/_api.py b/aiotieba/client/get_tab_map/_api.py index fcc665ee..3ba40766 100644 --- a/aiotieba/client/get_tab_map/_api.py +++ b/aiotieba/client/get_tab_map/_api.py @@ -20,7 +20,7 @@ def pack_proto(core: TiebaCore, fname: str) -> bytes: def pack_request(client: httpx.AsyncClient, core: TiebaCore, fname: str) -> httpx.Request: request = pack_proto_request( client, - url("http", APP_BASE_HOST, "/c/f/forum/searchPostForum", "cmd=309466"), + url("https", APP_BASE_HOST, "/c/f/forum/searchPostForum", "cmd=309466"), pack_proto(core, fname), ) diff --git a/aiotieba/client/get_threads/_api.py b/aiotieba/client/get_threads/_api.py index 3d3d2b1c..15cc0067 100644 --- a/aiotieba/client/get_threads/_api.py +++ b/aiotieba/client/get_threads/_api.py @@ -26,7 +26,7 @@ def pack_request( ) -> httpx.Request: request = pack_proto_request( client, - url("http", APP_BASE_HOST, "/c/f/frs/page", "cmd=301001"), + url("https", APP_BASE_HOST, "/c/f/frs/page", "cmd=301001"), pack_proto(core, fname, pn, rn, sort, is_good), ) diff --git a/aiotieba/client/get_user_contents/get_posts/_api.py b/aiotieba/client/get_user_contents/get_posts/_api.py index 5c2f08ec..cd513166 100644 --- a/aiotieba/client/get_user_contents/get_posts/_api.py +++ b/aiotieba/client/get_user_contents/get_posts/_api.py @@ -24,7 +24,7 @@ def pack_proto(core: TiebaCore, user_id: int, pn: int) -> bytes: def pack_request(client: httpx.AsyncClient, core: TiebaCore, user_id: int, pn: int) -> httpx.Request: request = pack_proto_request( client, - url("http", APP_BASE_HOST, "/c/u/feed/userpost", "cmd=303002"), + url("https", APP_BASE_HOST, "/c/u/feed/userpost", "cmd=303002"), pack_proto(core, user_id, pn), ) diff --git a/aiotieba/client/get_user_contents/get_threads/_api.py b/aiotieba/client/get_user_contents/get_threads/_api.py index e4930272..eb3e87a4 100644 --- a/aiotieba/client/get_user_contents/get_threads/_api.py +++ b/aiotieba/client/get_user_contents/get_threads/_api.py @@ -25,7 +25,7 @@ def pack_proto(core: TiebaCore, user_id: int, pn: int, public_only: bool) -> byt def pack_request(client: httpx.AsyncClient, core: TiebaCore, user_id: int, pn: int, public_only: bool) -> httpx.Request: request = pack_proto_request( client, - url("http", APP_BASE_HOST, "/c/u/feed/userpost", "cmd=303002"), + url("https", APP_BASE_HOST, "/c/u/feed/userpost", "cmd=303002"), pack_proto(core, user_id, pn, public_only), ) diff --git a/aiotieba/client/good/_api.py b/aiotieba/client/good/_api.py index ec8ecb53..602470c5 100644 --- a/aiotieba/client/good/_api.py +++ b/aiotieba/client/good/_api.py @@ -21,7 +21,7 @@ def pack_request( request = pack_form_request( client, - url("http", APP_BASE_HOST, "/c/c/bawu/commitgood"), + url("https", APP_BASE_HOST, "/c/c/bawu/commitgood"), sign(data), ) diff --git a/aiotieba/client/login/_api.py b/aiotieba/client/login/_api.py index 2adb8efd..a353c91a 100644 --- a/aiotieba/client/login/_api.py +++ b/aiotieba/client/login/_api.py @@ -17,7 +17,7 @@ def pack_request(client: httpx.AsyncClient, core: TiebaCore) -> httpx.Request: request = pack_form_request( client, - url("http", APP_BASE_HOST, "/c/s/login"), + url("https", APP_BASE_HOST, "/c/s/login"), sign(data), ) diff --git a/aiotieba/client/move/_api.py b/aiotieba/client/move/_api.py index 00c991ab..c68db921 100644 --- a/aiotieba/client/move/_api.py +++ b/aiotieba/client/move/_api.py @@ -19,7 +19,7 @@ def pack_request( request = pack_form_request( client, - url("http", APP_BASE_HOST, "/c/c/bawu/moveTabThread"), + url("https", APP_BASE_HOST, "/c/c/bawu/moveTabThread"), sign(data), ) diff --git a/aiotieba/client/recommend/_api.py b/aiotieba/client/recommend/_api.py index 832d0f37..b8580d6b 100644 --- a/aiotieba/client/recommend/_api.py +++ b/aiotieba/client/recommend/_api.py @@ -15,7 +15,7 @@ def pack_request(client: httpx.AsyncClient, core: TiebaCore, fid: int, tid: int) request = pack_form_request( client, - url("http", APP_BASE_HOST, "/c/c/bawu/pushRecomToPersonalized"), + url("https", APP_BASE_HOST, "/c/c/bawu/pushRecomToPersonalized"), sign(data), ) diff --git a/aiotieba/client/remove_fan/_api.py b/aiotieba/client/remove_fan/_api.py index c536b2c3..c2e74d65 100644 --- a/aiotieba/client/remove_fan/_api.py +++ b/aiotieba/client/remove_fan/_api.py @@ -15,7 +15,7 @@ def pack_request(client: httpx.AsyncClient, core: TiebaCore, tbs: str, user_id: request = pack_form_request( client, - url("http", APP_BASE_HOST, "/c/c/user/removeFans"), + url("https", APP_BASE_HOST, "/c/c/user/removeFans"), sign(data), ) diff --git a/aiotieba/client/set_privacy/_api.py b/aiotieba/client/set_privacy/_api.py index dce05dca..88a05945 100644 --- a/aiotieba/client/set_privacy/_api.py +++ b/aiotieba/client/set_privacy/_api.py @@ -17,7 +17,7 @@ def pack_request(client: httpx.AsyncClient, core: TiebaCore, fid: int, tid: int, request = pack_form_request( client, - url("http", APP_BASE_HOST, "/c/c/thread/setPrivacy"), + url("https", APP_BASE_HOST, "/c/c/thread/setPrivacy"), sign(data), ) diff --git a/aiotieba/client/sign_forum/_api.py b/aiotieba/client/sign_forum/_api.py index ea650c98..b2e8cdad 100644 --- a/aiotieba/client/sign_forum/_api.py +++ b/aiotieba/client/sign_forum/_api.py @@ -16,7 +16,7 @@ def pack_request(client: httpx.AsyncClient, core: TiebaCore, tbs: str, fname: st request = pack_form_request( client, - url("http", APP_BASE_HOST, "/c/c/forum/sign"), + url("https", APP_BASE_HOST, "/c/c/forum/sign"), sign(data), ) diff --git a/aiotieba/client/top/_api.py b/aiotieba/client/top/_api.py index ebeec150..1b91ad77 100644 --- a/aiotieba/client/top/_api.py +++ b/aiotieba/client/top/_api.py @@ -18,7 +18,7 @@ def pack_request(client: httpx.AsyncClient, core: TiebaCore, tbs: str, fname: st request = pack_form_request( client, - url("http", APP_BASE_HOST, "/c/c/bawu/committop"), + url("https", APP_BASE_HOST, "/c/c/bawu/committop"), sign(data), ) diff --git a/aiotieba/client/undislike_forum/_api.py b/aiotieba/client/undislike_forum/_api.py index 04ddf69f..12da8191 100644 --- a/aiotieba/client/undislike_forum/_api.py +++ b/aiotieba/client/undislike_forum/_api.py @@ -15,7 +15,7 @@ def pack_request(client: httpx.AsyncClient, core: TiebaCore, fid: int) -> httpx. request = pack_form_request( client, - url("http", APP_BASE_HOST, "/c/c/excellent/submitCancelDislike"), + url("https", APP_BASE_HOST, "/c/c/excellent/submitCancelDislike"), sign(data), ) diff --git a/aiotieba/client/unfollow_forum/_api.py b/aiotieba/client/unfollow_forum/_api.py index ee66344e..611dd21c 100644 --- a/aiotieba/client/unfollow_forum/_api.py +++ b/aiotieba/client/unfollow_forum/_api.py @@ -15,7 +15,7 @@ def pack_request(client: httpx.AsyncClient, core: TiebaCore, tbs: str, fid: int) request = pack_form_request( client, - url("http", APP_BASE_HOST, "/c/c/forum/unfavolike"), + url("https", APP_BASE_HOST, "/c/c/forum/unfavolike"), sign(data), ) diff --git a/aiotieba/client/unfollow_user/_api.py b/aiotieba/client/unfollow_user/_api.py index 29f3bc74..f92072b2 100644 --- a/aiotieba/client/unfollow_user/_api.py +++ b/aiotieba/client/unfollow_user/_api.py @@ -15,7 +15,7 @@ def pack_request(client: httpx.AsyncClient, core: TiebaCore, tbs: str, portrait: request = pack_form_request( client, - url("http", APP_BASE_HOST, "/c/c/user/unfollow"), + url("https", APP_BASE_HOST, "/c/c/user/unfollow"), sign(data), ) diff --git a/aiotieba/client/ungood/_api.py b/aiotieba/client/ungood/_api.py index 3711f524..05e06e3f 100644 --- a/aiotieba/client/ungood/_api.py +++ b/aiotieba/client/ungood/_api.py @@ -17,7 +17,7 @@ def pack_request(client: httpx.AsyncClient, core: TiebaCore, tbs: str, fname: st request = pack_form_request( client, - url("http", APP_BASE_HOST, "/c/c/bawu/commitgood"), + url("https", APP_BASE_HOST, "/c/c/bawu/commitgood"), sign(data), ) diff --git a/aiotieba/client/untop/_api.py b/aiotieba/client/untop/_api.py index 4bbc8bee..e5c26cc4 100644 --- a/aiotieba/client/untop/_api.py +++ b/aiotieba/client/untop/_api.py @@ -17,7 +17,7 @@ def pack_request(client: httpx.AsyncClient, core: TiebaCore, tbs: str, fname: st request = pack_form_request( client, - url("http", APP_BASE_HOST, "/c/c/bawu/committop"), + url("https", APP_BASE_HOST, "/c/c/bawu/committop"), sign(data), )