urls: only create linked-hash if query is f.
parent
a3be724f5a
commit
6d21a5a073
|
@ -19,7 +19,7 @@ TUPLE: url protocol username password host port path query anchor ;
|
|||
pick [ set-at ] [ delete-at drop ] if ;
|
||||
|
||||
: set-query-param ( url value key -- url )
|
||||
pick query>> <linked-hash> or [ set-or-delete ] keep >>query ;
|
||||
pick query>> [ <linked-hash> ] unless* [ set-or-delete ] keep >>query ;
|
||||
|
||||
ERROR: malformed-port ;
|
||||
|
||||
|
|
Loading…
Reference in New Issue