chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-users] bug update-uri in uri-common


From: Kristian Lein-Mathisen
Subject: [Chicken-users] bug update-uri in uri-common
Date: Tue, 13 May 2014 13:38:16 +0200


Hi guys,

I have come across som a bug or unintuitive behaviour in uri-common. The port parameter is reset on update-uri. uri-generic works like expected:

csi -R uri-generic
#;1> (update-uri (make-uri port: 100) scheme: 'http)
#(URI scheme=http authority=#(URIAuth host=#f port=100) path=() query=#f fragment=#f)

however, uri-common sets the port back to #f:

csi -R uri-common
#;1> (update-uri (make-uri port: 100) scheme: 'http)
#<URI-common: scheme=http port=#f host=#f path=#f query=#f fragment=#f>

I'm expecting to see port: 100 in the updated uri. A fairly simple workaround is, of course, adding port: (uri-port original-uri) but I thought I'd point this out.

Thanks,
K.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]