~exprez135/nullpointer

329befea55f38511b46743ae9800852cde9f5cd8 — Nate Ijams 2 years ago f658e58 master
Fix gopher length check.
1 files changed, 1 insertions(+), 1 deletions(-)

M fhost.py
M fhost.py => fhost.py +1 -1
@@ 173,7 173,7 @@ def shorten(url):
    # handler to convert gopher links to HTTP(S) proxy
    gopher = "gopher://"
    gopher_length = len(gopher)
    if url[:length] == gopher:
    if url[:gopher_length] == gopher:
        url = "https://gopher.tildeverse.org/{}".format(url[gopher_length:])

    # handler to conver gemini links to HTTP(S) proxy