From: ludo@gnu.org (Ludovic Courtès)
To: Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de>
Cc: "guix-devel@gnu.org" <guix-devel@gnu.org>
Subject: Re: [PATCH] http-client: Support basic authentication.
Date: Sat, 19 Dec 2015 14:51:28 +0100 [thread overview]
Message-ID: <87zix635sv.fsf@gnu.org> (raw)
In-Reply-To: <idjfuz27jks.fsf@bimsb-sys02.mdc-berlin.net> (Ricardo Wurmus's message of "Wed, 16 Dec 2015 11:51:15 +0100")
Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de> 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’.
prev parent reply other threads:[~2015-12-19 13:51 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-16 10:19 [PATCH] http-client: Support basic authentication Ricardo Wurmus
2015-12-16 10:51 ` Ricardo Wurmus
2015-12-16 12:28 ` Ricardo Wurmus
2015-12-19 13:52 ` Ludovic Courtès
2015-12-19 13:51 ` Ludovic Courtès [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87zix635sv.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=guix-devel@gnu.org \
--cc=ricardo.wurmus@mdc-berlin.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.