Return-Path: Delivered-To: apmail-httpd-apreq-cvs-archive@www.apache.org Received: (qmail 27644 invoked from network); 29 Sep 2005 05:13:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 29 Sep 2005 05:13:03 -0000 Received: (qmail 34490 invoked by uid 500); 29 Sep 2005 05:13:03 -0000 Delivered-To: apmail-httpd-apreq-cvs-archive@httpd.apache.org Received: (qmail 34454 invoked by uid 500); 29 Sep 2005 05:13:03 -0000 Mailing-List: contact apreq-cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: apreq-dev@httpd.apache.org List-Post: List-Help: List-Unsubscribe: List-Id: Delivered-To: mailing list apreq-cvs@httpd.apache.org Received: (qmail 34441 invoked by uid 99); 29 Sep 2005 05:13:02 -0000 X-ASF-Spam-Status: No, hits=-9.8 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 28 Sep 2005 22:13:02 -0700 Received: (qmail 27565 invoked by uid 65534); 29 Sep 2005 05:12:42 -0000 Message-ID: <20050929051242.27522.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r292389 - /httpd/apreq/trunk/library/t/parsers.c Date: Thu, 29 Sep 2005 05:12:41 -0000 To: apreq-cvs@httpd.apache.org From: joes@apache.org X-Mailer: svnmailer-1.0.5 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: joes Date: Wed Sep 28 22:12:38 2005 New Revision: 292389 URL: http://svn.apache.org/viewcvs?rev=292389&view=rev Log: Add more tests of the header-parser's continuation logic. Modified: httpd/apreq/trunk/library/t/parsers.c Modified: httpd/apreq/trunk/library/t/parsers.c URL: http://svn.apache.org/viewcvs/httpd/apreq/trunk/library/t/parsers.c?rev=292389&r1=292388&r2=292389&view=diff ============================================================================== --- httpd/apreq/trunk/library/t/parsers.c (original) +++ httpd/apreq/trunk/library/t/parsers.c Wed Sep 28 22:12:38 2005 @@ -15,6 +15,7 @@ */ #include "apreq_parser.h" +#include "apreq_util.h" #include "apreq_error.h" #include "apr_strings.h" #include "apr_xml.h" @@ -243,6 +244,15 @@ AT_mem_eq(val2 ,"... contents of file1.txt ..." CRLF, len); val = apr_table_get(t, "content-type"); AT_str_eq(val, "text/plain"); + + val = apr_table_get(body, ""); + AT_str_eq(val, "Joe owes =80100."); + t = apreq_value_to_param(val)->info; + val = apr_table_get(t, "content-type"); + AT_int_eq(apreq_header_attribute(val, "charset", 7, &val, &len), + APR_SUCCESS); + AT_str_eq(val, "windows-1250"); + apr_brigade_cleanup(vb); apr_brigade_cleanup(bb); }