[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] http-client: distinguishing between responses 301 an
Re: [Chicken-users] http-client: distinguishing between responses 301 and 302
Fri, 19 Oct 2018 10:42:23 +0200
On Thu, Oct 18, 2018 at 06:19:22PM +0100, Norman Gray wrote:
> If I parameterise that with (parameterize ((max-redirect-depth 0)) ...),
> then the client library doesn't follow the redirection but instead raises
> (exn http redirect-depth-exceeded). That's almost there, except that the
> exception doesn't contain information about _which_ redirection, 301 or 302,
> prompted it.
This is definitely an oversight on my part; a http-client-error condition
object should always contain a response object when there is one.
I've just pushed 0.18 (for C4) and 1.1 (for C5), please give it a try.
Description: PGP signature