]> gitweb.factorcode.org Git - factor.git/commitdiff
gopher: don't url-encode that paths
authorJohn Benediktsson <mrjbq7@gmail.com>
Fri, 20 Jan 2023 00:29:52 +0000 (16:29 -0800)
committerJohn Benediktsson <mrjbq7@gmail.com>
Fri, 20 Jan 2023 00:29:52 +0000 (16:29 -0800)
extra/gopher/gopher.factor

index effc6cce95548bcdcaf2f20028e1f7a267c83abb..c19ffb50fe19ee82bf06a146e8c81730e8d40618 100644 (file)
@@ -50,7 +50,7 @@ ERROR: not-a-gopher-url url ;
     >url dup protocol>> "gopher" = [ not-a-gopher-url ] unless {
         [ host>> ]
         [ port>> 70 or <inet> binary ]
-        [ path>> rest url-encode [ "1/" ] when-empty ]
+        [ path>> rest [ "1/" ] when-empty ]
         [ query>> [ assoc>query url-decode "?" glue ] when* ]
     } cleave '[
         1 minutes input-stream get set-timeout