httpd-apreq-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject svn commit: r292389 - /httpd/apreq/trunk/library/t/parsers.c
Date Thu, 29 Sep 2005 05:12:41 GMT
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);
         }



Mime
View raw message