bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#13598: 24.3.50; url-http.el doesn't correctly parse headers when the


From: Bastien
Subject: bug#13598: 24.3.50; url-http.el doesn't correctly parse headers when they are sent line-by-line
Date: Wed, 13 Feb 2013 18:19:15 +0100
User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 (gnu/linux)

Hi Jonas,

coroa@online.de (Jonas Hörsch) writes:

> On Thu, Jan 31 2013, Jonas Hoersch wrote:
>
>> changing the regex in (re-search-forward "^\r*$" nil t) to "^\r*\n"
>> solves the problem for me, but i'm unsure about what i might possibly be
>> breaking that way.
>
> i'm positive now, that changing the regex to "^\r+$" is the way to go.
>
> i would be happy to supply a patch, but i understand it is probably to
> trivial a matter to justify going through the legal requirements first.
>
> the following advice can serve as a hotfix:
>
> (defadvice url-http-wait-for-headers-change-function (around
>                                                       
> url-http-properly-wait-for-headers-advice
>                                                       activate)
>   (save-excursion
>     (goto-char (point-min))
>     (if (re-search-forward "^\r+$" nil t)
>         ad-do-it
>       (url-http-debug "Incomplete headers...: %d" (point-max)))))

I confirm both the problem and the fix.

It does not look critical though.  Stefan, Glenn, should I
commit the patch into trunk (or emacs-24)?

-- 
 Bastien





reply via email to

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