From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bastien Newsgroups: gmane.emacs.bugs 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 Message-ID: <87obfno2af.fsf@bzg.ath.cx> References: <87d2wluuu9.fsf@online.de> <87wquk3sbv.fsf@online.de> <878v6st9m4.fsf@bzg.ath.cx> <68ip5v99nu.fsf@fencepost.gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1360822173 18844 80.91.229.3 (14 Feb 2013 06:09:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 14 Feb 2013 06:09:33 +0000 (UTC) Cc: 13598@debbugs.gnu.org, Jonas =?UTF-8?Q?H=C3=B6rsch?= To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Feb 14 07:09:52 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1U5s11-0003UM-QY for geb-bug-gnu-emacs@m.gmane.org; Thu, 14 Feb 2013 07:09:51 +0100 Original-Received: from localhost ([::1]:34047 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U5s0h-0006da-QR for geb-bug-gnu-emacs@m.gmane.org; Thu, 14 Feb 2013 01:09:31 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:54974) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U5s0f-0006cd-5Y for bug-gnu-emacs@gnu.org; Thu, 14 Feb 2013 01:09:30 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U5s0d-0006QD-5x for bug-gnu-emacs@gnu.org; Thu, 14 Feb 2013 01:09:29 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:49468) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U5s0d-0006Q9-2D for bug-gnu-emacs@gnu.org; Thu, 14 Feb 2013 01:09:27 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1U5s1B-0001ts-QG for bug-gnu-emacs@gnu.org; Thu, 14 Feb 2013 01:10:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Bastien Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 14 Feb 2013 06:10:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13598 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 13598-submit@debbugs.gnu.org id=B13598.13608221637219 (code B ref 13598); Thu, 14 Feb 2013 06:10:01 +0000 Original-Received: (at 13598) by debbugs.gnu.org; 14 Feb 2013 06:09:23 +0000 Original-Received: from localhost ([127.0.0.1]:54932 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U5s0Z-0001sN-1A for submit@debbugs.gnu.org; Thu, 14 Feb 2013 01:09:23 -0500 Original-Received: from mail-wi0-f182.google.com ([209.85.212.182]:43173) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1U5s0W-0001sD-Je for 13598@debbugs.gnu.org; Thu, 14 Feb 2013 01:09:21 -0500 Original-Received: by mail-wi0-f182.google.com with SMTP id hi18so2292793wib.3 for <13598@debbugs.gnu.org>; Wed, 13 Feb 2013 22:08:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:from:to:cc:subject:in-reply-to:references :user-agent:date:message-id:mime-version:content-type; bh=wzJ2F8YKxlKw97jhPu4DWj9vtsUbaqYkyg2kRp/Co9s=; b=wbPIZl3VmzsXDXtYBi0HAkjbgtlsrvdJtn0lWlutoyH+6U5ir5OVDBPXIUsWVgftyP o/Gs/QlEycAm1pGJtiLP4NNufBw+yn/ATfuAWgv1gd0kDouB4HINwe5WOduZPG/h72Tw G9IX8grhdeLJzcohdcTAdHCXBPQ+Sm8iNq4kyKwk1Y2LvkW0RE8Ek6wsuCJShZrGIWdr j7TrTDmEq+3N7goclgFYPf2oZsNlUWnccKygBvSmAf7xeS0TPLahrQvkpXSOrCcflcMK GM9OZNo64+VmIkT4bGkSuOGE/Ejzs3lUdyz27tY09tA2xcbfHLmgUH64ciGx8NvLPYSL 3l7A== X-Received: by 10.180.84.162 with SMTP id a2mr14411276wiz.14.1360822124431; Wed, 13 Feb 2013 22:08:44 -0800 (PST) Original-Received: from bzg.localdomain (mar75-2-81-56-68-112.fbx.proxad.net. [81.56.68.112]) by mx.google.com with ESMTPS id e12sm50109909wiw.5.2013.02.13.22.08.41 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 13 Feb 2013 22:08:43 -0800 (PST) Original-Received: by bzg.localdomain (Postfix, from userid 1000) id B08641C20D5B; Thu, 14 Feb 2013 07:08:40 +0100 (CET) In-Reply-To: <68ip5v99nu.fsf@fencepost.gnu.org> (Glenn Morris's message of "Wed, 13 Feb 2013 16:38:29 -0500") User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:71242 Archived-At: Hi Glenn, Glenn Morris 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