[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: |
Daniel Hartwig |
Subject: |
bug#12827: [2.0.6] web client: fails to parse 404 header |
Date: |
Tue, 27 Nov 2012 09:06:45 +0800 |
On 27 November 2012 07:13, Ludovic Courtès <address@hidden> wrote:
> address@hidden (Ludovic Courtès) skribis:
>
>> So for now, I’d go with this patch, which fixes the bug at hand:
>
> I just applied this patch as 261af76.
>
+;; 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).
- bug#12827: [2.0.6] web client: fails to parse 404 header, (continued)
- bug#12827: [2.0.6] web client: fails to parse 404 header, Ludovic Courtès, 2012/11/23
- bug#12827: [2.0.6] web client: fails to parse 404 header, Daniel Hartwig, 2012/11/24
- bug#12827: [2.0.6] web client: fails to parse 404 header, Ludovic Courtès, 2012/11/24
- bug#12827: [2.0.6] web client: fails to parse 404 header, Daniel Hartwig, 2012/11/24
- bug#12827: [2.0.6] web client: fails to parse 404 header, Ludovic Courtès, 2012/11/25
- bug#12827: [2.0.6] web client: fails to parse 404 header, Ludovic Courtès, 2012/11/26
- bug#12827: [2.0.6] web client: fails to parse 404 header,
Daniel Hartwig <=
- bug#12827: [2.0.6] web client: fails to parse 404 header, Ludovic Courtès, 2012/11/27
- bug#12827: [2.0.6] web client: fails to parse 404 header, Daniel Hartwig, 2012/11/27
- bug#12827: [2.0.6] web client: fails to parse 404 header, Ludovic Courtès, 2012/11/27