Hi Daniel,

Thanks for testing (& for the original patches :)

On Sat 07 Jul 2012 06:01, Daniel Hartwig <mand...@gmail.com> writes:

> One small nitpick, depending on what uri-host is defined to be
> returning this may or may not differ from spec.:
>
>  host        = IP-literal / IPv4address / reg-name
>
>  IP-literal    = "[" ( IPv6address / IPvFuture  ) "]"
>
> In my intuition, a call to build-uri is naturally of the form:
>
>  (build-uri #:scheme 'http
>             #:host "[2001:db8::1]")

Yeah it is a bit confusing.  I think the thing to do is to consider the
brackets as part of how ip-literals are delimited within a URI, and not
part of the host itself.  Thus it would be Guile's responsibility to add
them or remove them.  But as you say, this goes against the RFC.

At the same time, I'd like to be able to always pass the result of
inet-ntop to build-uri #:host.

The internet is a messy place!

Andy
-- 
http://wingolog.org/



Reply via email to