From b5a3b6e2f9aad366e75bdc3486f813b5c2d0f536 Mon Sep 17 00:00:00 2001 From: Abhinav Singh Date: Thu, 11 Apr 2024 07:57:36 +0530 Subject: [PATCH] Just remove link from plugin docstring for now --- proxy/plugin/shortlink.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/proxy/plugin/shortlink.py b/proxy/plugin/shortlink.py index 95b692647e..9f3802d9a7 100644 --- a/proxy/plugin/shortlink.py +++ b/proxy/plugin/shortlink.py @@ -34,7 +34,7 @@ class ShortLinkPlugin(HttpProxyBasePlugin): Customize map below for your taste and need. Paths are also preserved. E.g. ``t/imoracle`` will - resolve to https://twitter.com/imoracle. + resolve to my Twitter profile for username ``imoracle``. """ SHORT_LINKS = { @@ -65,7 +65,7 @@ def handle_client_request( path = SLASH if not request.path else request.path self.client.queue( seeOthersResponse( - b'https://' + self.SHORT_LINKS[request.host] + path, + b"http://" + self.SHORT_LINKS[request.host] + path, ), ) else: