guix-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] http-client: Support basic authentication.


From: Ludovic Courtès
Subject: Re: [PATCH] http-client: Support basic authentication.
Date: Sat, 19 Dec 2015 14:51:28 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

Ricardo Wurmus <address@hidden> skribis:

> Binding the result of (uri-userinfo uri) fixes it:
>
>       (let*-values ((userinfo (uri-userinfo uri))
>                     (auth-header
>                      (match userinfo
>                        ((str) (cons 'Authorization
>                                     (string-append "Basic "
>                                                    (base64-encode
>                                                     (string->utf8 str)))))
>                        (_ '())))
>                        ...) ...)
>
> I don’t understand this.  Does (uri-userinfo uri) return multiple
> values?

‘uri-userinfo’ is a simple field accessor; it returns one value.

Ludo’.



reply via email to

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