From: Bastien <bzg@altern.org>
To: Glenn Morris <rgm@gnu.org>
Cc: 13598@debbugs.gnu.org, "Jonas Hörsch" <coroa@online.de>
Subject: bug#13598: 24.3.50; url-http.el doesn't correctly parse headers when they are sent line-by-line
Date: Thu, 14 Feb 2013 07:08:40 +0100 [thread overview]
Message-ID: <87obfno2af.fsf@bzg.ath.cx> (raw)
In-Reply-To: <68ip5v99nu.fsf@fencepost.gnu.org> (Glenn Morris's message of "Wed, 13 Feb 2013 16:38:29 -0500")
Hi Glenn,
Glenn Morris <rgm@gnu.org> writes:
>>>> i'm positive now, that changing the regex to "^\r+$" is the way to go.
>
> Would "^\r?\n" be better?
The quote of the OP is misleading -- he proposed to change the regexp
in (re-search-forward "^\r*$" nil t) to "^\r*\n", which is the fix I'm
talking about.
But yes, "^\r?\n" is slightly better than "^\r*\n" because AFAIK there
can be only one CR in the line separating the headers from the body.
Let me know if you want to fix this yourself or if I should do it.
Thanks,
--
Bastien
next prev parent reply other threads:[~2013-02-14 6:08 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-31 17:26 bug#13598: 24.3.50; url-http.el doesn't correctly parse headers when they are sent line-by-line Jonas Hoersch
2013-02-07 18:13 ` Jonas Hörsch
2013-02-13 17:19 ` Bastien
2013-02-13 19:30 ` Stefan Monnier
2013-02-13 19:42 ` Glenn Morris
2013-02-13 21:38 ` Glenn Morris
2013-02-14 6:08 ` Bastien [this message]
2013-02-16 2:06 ` Glenn Morris
2014-02-26 9:32 ` bug#13598: 24.3.50; Blazej Adamczyk
2014-02-26 16:54 ` bug#13598: 24.3.50 Blazej Adamczyk
2014-02-27 22:43 ` Glenn Morris
2014-03-03 6:10 ` Blazej Adamczyk
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87obfno2af.fsf@bzg.ath.cx \
--to=bzg@altern.org \
--cc=13598@debbugs.gnu.org \
--cc=coroa@online.de \
--cc=rgm@gnu.org \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.