guile-user
[Top][All Lists]
Advanced

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

Re: can't get http-get w/ accept header working


From: Keith Wright
Subject: Re: can't get http-get w/ accept header working
Date: Wed, 26 Jan 2022 15:28:57 -0500

Matt Wette <matt.wette@gmail.com> writes:

> Does someone have example of using the Accept header with http-get?

I don't.

> I'm basically calling
>      (http-get url #:headers (list auth (parse-header 'accept "*/*") ...)
>
> and getting back error from web/request.scm:
>      (validate-headers (((*/*)) ... )
>
> header name not a symbol (*/*)

It's right about that. "*/*" is a string, not a symbol.
Contrarywise, '*/* is a symbol, whether that fixes your
problem, I can't say.

   -- Keith



reply via email to

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