Author: lgo
Date: Sat Dec 26 22:23:31 2009
New Revision: 894029
URL: http://svn.apache.org/viewvc?rev=894029&view=rev
Log:
Follow up r894014.
* subversion/libsvn_ra_serf/serf.c
(svn_ra_serf__open): Set the port number before copying the url info
object in the ra_serf session.
Modified:
subversion/trunk/subversion/libsvn_ra_serf/serf.c
Modified: subversion/trunk/subversion/libsvn_ra_serf/serf.c
URL:
http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_ra_serf/serf.c?rev=894029&r1=894028&r2=894029&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_ra_serf/serf.c (original)
+++ subversion/trunk/subversion/libsvn_ra_serf/serf.c Sat Dec 26 22:23:31 2009
@@ -360,14 +360,12 @@
older, for root paths url.path will be "", where serf requires "/". */
if (url.path == NULL || url.path[0] == '\0')
url.path = apr_pstrdup(serf_sess->pool, "/");
-
- serf_sess->repos_url = url;
- serf_sess->repos_url_str = apr_pstrdup(serf_sess->pool, repos_URL);
-
if (!url.port)
{
url.port = apr_uri_port_of_scheme(url.scheme);
}
+ serf_sess->repos_url = url;
+ serf_sess->repos_url_str = apr_pstrdup(serf_sess->pool, repos_URL);
serf_sess->using_ssl = (svn_cstring_casecmp(url.scheme, "https") == 0);
serf_sess->capabilities = apr_hash_make(serf_sess->pool);