apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cove...@apache.org
Subject svn commit: r732478 - in /apr/apr-util/branches/1.3.x: include/apr_uri.h test/testuri.c
Date Wed, 07 Jan 2009 20:40:13 GMT
Author: covener
Date: Wed Jan  7 12:40:13 2009
New Revision: 732478

URL: http://svn.apache.org/viewvc?rev=732478&view=rev
Log:
backport r732476 from trunk:

Correct documentation of apr_uri_parse() and add a test
for the current and agreed-upon behavior.  PR44761

Reported by: Lieven Govaerts <lgo mobsol.be>
Contributed by: Dan Poirier <poirier pobox.com>
Reviewed by: covener


Modified:
    apr/apr-util/branches/1.3.x/include/apr_uri.h
    apr/apr-util/branches/1.3.x/test/testuri.c

Modified: apr/apr-util/branches/1.3.x/include/apr_uri.h
URL: http://svn.apache.org/viewvc/apr/apr-util/branches/1.3.x/include/apr_uri.h?rev=732478&r1=732477&r2=732478&view=diff
==============================================================================
--- apr/apr-util/branches/1.3.x/include/apr_uri.h (original)
+++ apr/apr-util/branches/1.3.x/include/apr_uri.h Wed Jan  7 12:40:13 2009
@@ -95,7 +95,7 @@
     char *hostname;
     /** port string (integer representation is in "port") */
     char *port_str;
-    /** the request path (or "/" if only scheme://host was given) */
+    /** the request path (or NULL if only scheme://host was given) */
     char *path;
     /** Everything after a '?' in the path, if present */
     char *query;

Modified: apr/apr-util/branches/1.3.x/test/testuri.c
URL: http://svn.apache.org/viewvc/apr/apr-util/branches/1.3.x/test/testuri.c?rev=732478&r1=732477&r2=732478&view=diff
==============================================================================
--- apr/apr-util/branches/1.3.x/test/testuri.c (original)
+++ apr/apr-util/branches/1.3.x/test/testuri.c Wed Jan  7 12:40:13 2009
@@ -92,6 +92,10 @@
         0, "http", "sonyamt@[fe80::1]", "sonyamt", NULL, "fe80::1", NULL, "/filespace/",
"arg1=store", NULL, 0
     },
     {
+        "http://localhost",
+        0, "http", "localhost", NULL, NULL, "localhost", NULL, NULL, NULL, NULL, 0
+    },
+    {
         "//www.apache.org/",
         0, NULL, "www.apache.org", NULL, NULL, "www.apache.org", NULL, "/", NULL, NULL, 0
     },



Mime
View raw message