exploding-fish icon indicating copy to clipboard operation
exploding-fish copied to clipboard

Setting scheme does not work as expected

Open jstewart opened this issue 7 years ago • 1 comments

Is this a bug?

Getting scheme works:

(-> "https://foo.bar" fish/uri fish/scheme str)
"https"

Changing scheme works:

user> (-> "https://foo.bar" fish/uri (fish/scheme "http") str)
"http://foo.bar"

Setting scheme when scheme was previously nil does not:

(-> "foo.bar" fish/uri (fish/scheme "http") str)
"http:foo.bar"

jstewart avatar Aug 28 '18 20:08 jstewart

It looks like I have to set the scheme specific part myself, in accordance with RFC 2396.

jstewart avatar Aug 29 '18 13:08 jstewart