bug-guile
[Top][All Lists]
Advanced

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

bug#12827: [2.0.6] web client: fails to parse 404 header


From: Ludovic Courtès
Subject: bug#12827: [2.0.6] web client: fails to parse 404 header
Date: Tue, 27 Nov 2012 13:50:48 +0100
User-agent: Gnus/5.130005 (Ma Gnus v0.5) Emacs/24.2 (gnu/linux)

Daniel Hartwig <address@hidden> skribis:

> +;; emacs: (put 'declare-relative-uri-header! 'scheme-indent-function 1)
> +(define (declare-relative-uri-header! name)
> +  (declare-header! name
> +    (lambda (str)
> +      (or (string->uri str)                       ; absolute URI
> +          (build-uri #f                           ; relative URI
> +                     #:path str
> +                     #:validate? #f)))
> +    uri?
> +    write-uri))
> +
>
> Sorry for late response.
>
> Setting uri-path to str will result in wrongly constructed uri
> objects.  In practice, the relative uri will often have a query part.
> In theory, they may also contain any other part of the uri except
> scheme (which would make them absolute).

Sure.  But then again, the goal was just to have a hack that would solve
the problem initially reported here, while waiting for a proper fix.

I’m open to suggestions.  It seems to me that it’s either this or your
patches against (web uri).  WDYT?

Ludo’.





reply via email to

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