gopher: make default selector the menu.
parent
ac9c983c93
commit
979b3b6ab1
|
@ -93,8 +93,8 @@ ERROR: not-a-gopher-url url ;
|
||||||
dup protocol>> "gopher" = [ not-a-gopher-url ] unless {
|
dup protocol>> "gopher" = [ not-a-gopher-url ] unless {
|
||||||
[ host>> ]
|
[ host>> ]
|
||||||
[ port>> 70 or <inet> binary ]
|
[ port>> 70 or <inet> binary ]
|
||||||
[ path>> rest ]
|
[ path>> rest [ "1/" ] when-empty ]
|
||||||
[ query>> assoc>query url-decode "?" glue ]
|
[ query>> [ assoc>query url-decode "?" glue ] when* ]
|
||||||
} cleave '[ _ get-selector ] with-client ;
|
} cleave '[ _ get-selector ] with-client ;
|
||||||
|
|
||||||
: gopher. ( url -- )
|
: gopher. ( url -- )
|
||||||
|
|
Loading…
Reference in New Issue