On 27 November 2012 07:13, Ludovic Courtès <l...@gnu.org> wrote: > l...@gnu.org (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).