From: ludo@gnu.org (Ludovic Courtès)
To: Daniel Hartwig <mandyke@gmail.com>
Cc: 12827@debbugs.gnu.org
Subject: bug#12827: [2.0.6] web client: fails to parse 404 header
Date: Tue, 27 Nov 2012 13:50:48 +0100 [thread overview]
Message-ID: <87sj7v2orb.fsf@gnu.org> (raw)
In-Reply-To: <CAN3veRdy33nsPdxFdNvoAZxcwpR5eZLpbWRTXZkRQU9j9TCckw@mail.gmail.com> (Daniel Hartwig's message of "Tue, 27 Nov 2012 09:06:45 +0800")
Daniel Hartwig <mandyke@gmail.com> 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’.
next prev parent reply other threads:[~2012-11-27 12:50 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-07 20:40 bug#12827: [2.0.6] web client: fails to parse 404 header Ludovic Courtès
2012-11-08 5:52 ` Daniel Hartwig
2012-11-08 20:10 ` Ludovic Courtès
2012-11-09 0:39 ` Daniel Hartwig
2012-11-09 20:52 ` Ludovic Courtès
2012-11-10 1:45 ` Daniel Hartwig
2012-11-10 13:52 ` Ludovic Courtès
2012-11-23 22:19 ` Ludovic Courtès
2012-11-24 11:23 ` Daniel Hartwig
2012-11-24 15:10 ` Ludovic Courtès
2012-11-24 15:34 ` Daniel Hartwig
2012-11-26 0:15 ` Ludovic Courtès
2012-11-26 23:13 ` Ludovic Courtès
2012-11-27 1:06 ` Daniel Hartwig
2012-11-27 12:50 ` Ludovic Courtès [this message]
2012-11-27 15:18 ` Daniel Hartwig
2012-11-27 21:43 ` Ludovic Courtès
2013-02-23 8:11 ` bug#12827: [PATCH] Tweak web modules, support relative URIs (was: bug#12827: [2.0.6] web client: fails to parse 404 header) Daniel Hartwig
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87sj7v2orb.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=12827@debbugs.gnu.org \
--cc=mandyke@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).