From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Blazej Adamczyk Newsgroups: gmane.emacs.bugs Subject: bug#13598: 24.3.50 Date: Wed, 26 Feb 2014 17:54:06 +0100 Message-ID: <2DC22385-AACB-4B7D-9918-3EB835B8526C@gmail.com> References: <87d2wluuu9.fsf@online.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 7.1 \(1827\)) Content-Type: multipart/signed; boundary="Apple-Mail=_66A2BAA1-A246-4EA4-884A-E43B1733702E"; protocol="application/pgp-signature"; micalg=pgp-sha256 X-Trace: ger.gmane.org 1393433718 22496 80.91.229.3 (26 Feb 2014 16:55:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 26 Feb 2014 16:55:18 +0000 (UTC) To: 13598@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Feb 26 17:55:21 2014 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 1WIhlR-0004eG-EE for geb-bug-gnu-emacs@m.gmane.org; Wed, 26 Feb 2014 17:55:21 +0100 Original-Received: from localhost ([::1]:41713 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WIhlR-0000gu-40 for geb-bug-gnu-emacs@m.gmane.org; Wed, 26 Feb 2014 11:55:21 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45786) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WIhlG-0000Vo-Un for bug-gnu-emacs@gnu.org; Wed, 26 Feb 2014 11:55:18 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WIhl8-0008Hd-Oh for bug-gnu-emacs@gnu.org; Wed, 26 Feb 2014 11:55:10 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40347) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WIhl8-0008HM-Ka for bug-gnu-emacs@gnu.org; Wed, 26 Feb 2014 11:55:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WIhl7-0002jk-NT for bug-gnu-emacs@gnu.org; Wed, 26 Feb 2014 11:55:02 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: <87d2wluuu9.fsf@online.de> Resent-From: Blazej Adamczyk Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 26 Feb 2014 16:55: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.139343365610430 (code B ref 13598); Wed, 26 Feb 2014 16:55:01 +0000 Original-Received: (at 13598) by debbugs.gnu.org; 26 Feb 2014 16:54:16 +0000 Original-Received: from localhost ([127.0.0.1]:41529 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WIhkN-0002i9-CP for submit@debbugs.gnu.org; Wed, 26 Feb 2014 11:54:15 -0500 Original-Received: from mail-ea0-f170.google.com ([209.85.215.170]:50888) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WIhkJ-0002hu-Ke for 13598@debbugs.gnu.org; Wed, 26 Feb 2014 11:54:12 -0500 Original-Received: by mail-ea0-f170.google.com with SMTP id g15so1116282eak.1 for <13598@debbugs.gnu.org>; Wed, 26 Feb 2014 08:54:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:subject:message-id:date:to:mime-version; bh=NwNAjtH1YyRf2oTLvVxyTJOhKZRS/0yXmG8rFNddyjk=; b=NsXg0SF9jK0KsBvy3RXSSYIpzjCXxrcPQ1kRz9Gq82gVCL9z+NTvxeA6YC+ZsjgUkj +/njvTq4+LOXnFEArpz5FX3dKQh4H6eXyWA68huY/yVDWhhH9i9Njuxh0J0UuGFqBeV0 FthwZEBTR3td2QUQkaBx43qucgIVYmTmsOAyQcQAHtZLyaL4MEINJftqq8prHg1bcHpu b98X9PhYbWLDlv3JG5/DHLSzF3HVWkXtu/v5sB4U5mpDvyvO4hPpSYe7I0w+snqOdvX2 eUoDVsFWucEF+TYlGdzL6zoWzEuIaaSAhd7l2axORG+aurUp8bvx0SHZX2Xd8DNgszx5 9Wyg== X-Received: by 10.14.111.5 with SMTP id v5mr7871269eeg.11.1393433650521; Wed, 26 Feb 2014 08:54:10 -0800 (PST) Original-Received: from [192.168.1.100] ([87.204.33.177]) by mx.google.com with ESMTPSA id 43sm5813518eeh.13.2014.02.26.08.54.08 for <13598@debbugs.gnu.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 26 Feb 2014 08:54:09 -0800 (PST) X-Mailer: Apple Mail (2.1827) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.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:86269 Archived-At: --Apple-Mail=_66A2BAA1-A246-4EA4-884A-E43B1733702E Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Hello,=20 I had to reopen the bug because I faced the same problem as OP. His = didn't make himself clear: By example: When parsing response we may get in state when we will receive only the = following: "HTTP/1.0 200 OK^M " without double quotes (I added them to show the newline character). In case of current implementation the regexp "^\r?$" and the previous = regexp "^\r*$" both are matching the end of string. That is wrong = because there will be something in the new line after a while.=20 RFC 2616 states clear: generic-message =3D start-line *(message-header CRLF) CRLF [ message-body ] start-line =3D Request-Line | Status-Line there has to be one (exactly one) CR in a single line between headers = and body. Thus I propose a simple regexp "^\r$". -- Blazej --Apple-Mail=_66A2BAA1-A246-4EA4-884A-E43B1733702E Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - http://gpgtools.org iQEcBAEBCAAGBQJTDhwuAAoJELcOb3l0I/e32v4IAK9z9WCre9qiiKiNbrJUaTHR /QIrxyk0mDmTHkyYjFEgWRTjbk4gDF4ljQz6sMinv1JH9Zv5hwdk+diijNkvsCyE oq8lbJuQcsIjmKQrM+VT+OS2fFqcthHRsjtdHIeJT6GjkKxoqK8X9epCw9D5mf4F uQvr+/TfQWG18eRiXFVqX6FQj/ndo9StIpfRnvJhBh7XRieQ5Rqai+DeDVI6Nhfx 0JZNeJuRvDPXkPjjG3g51Y4FS93H5mxuQPU84FwcYmpULYSO2c2YxQ/v2AFBWFxg qMD2bljGnoyp7bNUULSPh6hZFIxuxisH02/RXT4pou77lVikAfhRTss4ibhSJs0= =MsbQ -----END PGP SIGNATURE----- --Apple-Mail=_66A2BAA1-A246-4EA4-884A-E43B1733702E--