Skip to content

Commit

Permalink
Just remove link from plugin docstring for now
Browse files Browse the repository at this point in the history
  • Loading branch information
abhinavsingh committed Apr 11, 2024
1 parent 96850d9 commit b5a3b6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions proxy/plugin/shortlink.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit b5a3b6e

Please sign in to comment.