Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id D1121200BA4 for ; Sat, 15 Oct 2016 17:34:02 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id D00F8160AF1; Sat, 15 Oct 2016 15:34:02 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 21516160AD9 for ; Sat, 15 Oct 2016 17:34:01 +0200 (CEST) Received: (qmail 86544 invoked by uid 500); 15 Oct 2016 15:34:01 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 86535 invoked by uid 99); 15 Oct 2016 15:34:01 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 15 Oct 2016 15:34:01 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id AF8A3180A5A for ; Sat, 15 Oct 2016 15:34:00 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.999 X-Spam-Level: X-Spam-Status: No, score=-1.999 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id 6khXx4keYb14 for ; Sat, 15 Oct 2016 15:33:58 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 22B7F5FAD5 for ; Sat, 15 Oct 2016 15:33:58 +0000 (UTC) Received: from svn01-us-west.apache.org (svn.apache.org [10.41.0.6]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 045F0E00A5 for ; Sat, 15 Oct 2016 15:33:56 +0000 (UTC) Received: from svn01-us-west.apache.org (localhost [127.0.0.1]) by svn01-us-west.apache.org (ASF Mail Server at svn01-us-west.apache.org) with ESMTP id 19C5E3A0EDB for ; Sat, 15 Oct 2016 15:33:55 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1765085 - /httpd/test/framework/trunk/t/apache/headers.t Date: Sat, 15 Oct 2016 15:33:55 -0000 To: cvs@httpd.apache.org From: ylavic@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20161015153356.19C5E3A0EDB@svn01-us-west.apache.org> archived-at: Sat, 15 Oct 2016 15:34:03 -0000 Author: ylavic Date: Sat Oct 15 15:33:55 2016 New Revision: 1765085 URL: http://svn.apache.org/viewvc?rev=1765085&view=rev Log: Condition new header parser behaviour until it is released in 2.4.x. Modified: httpd/test/framework/trunk/t/apache/headers.t Modified: httpd/test/framework/trunk/t/apache/headers.t URL: http://svn.apache.org/viewvc/httpd/test/framework/trunk/t/apache/headers.t?rev=1765085&r1=1765084&r2=1765085&view=diff ============================================================================== --- httpd/test/framework/trunk/t/apache/headers.t (original) +++ httpd/test/framework/trunk/t/apache/headers.t Sat Oct 15 15:33:55 2016 @@ -5,7 +5,9 @@ use Apache::Test; use Apache::TestUtil; use Apache::TestRequest; -my %headers = ( +my %headers; +if (have_min_apache_version("2.5.0")) { + %headers = ( "Hello:World\r\n" => ["Hello", "World"], # "Hello : World\r\n" => ["Hello", "World"], # "Hello : World \r\n" => ["Hello", "World"], @@ -15,6 +17,19 @@ my %headers = ( "Hello: Foo\r\n Bar\r\n" => ["Hello", qr/Foo +Bar/], "Hello: Foo \r\n Bar\r\n" => ["Hello", qr/Foo +Bar/], ); +} +else { + %headers = ( + "Hello:World\n" => ["Hello", "World"], + "Hello : World\n" => ["Hello", "World"], + "Hello : World \n" => ["Hello", "World"], + "Hello \t : World \n" => ["Hello", "World"], + "Hello: Foo\n Bar\n" => ["Hello", "Foo Bar"], + "Hello: Foo\n\tBar\n" => ["Hello", "Foo\tBar"], + "Hello: Foo\n Bar\n" => ["Hello", qr/Foo +Bar/], + "Hello: Foo \n Bar\n" => ["Hello", qr/Foo +Bar/], + ); +} my $uri = "/modules/cgi/env.pl";