You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by ph...@apache.org on 2015/01/09 11:14:57 UTC
svn commit: r1650481 - /subversion/trunk/subversion/libsvn_ra_serf/options.c
Author: philip
Date: Fri Jan 9 10:14:57 2015
New Revision: 1650481
URL: http://svn.apache.org/r1650481
Log:
HTTP header names are case-insensitive and serf needs to work when
a proxy or server sends mixed or lower case "SVN".
* subversion/libsvn_ra_serf/options.c
(capabilities_headers_iterator_callback): Do case-insensitive comparison.
Modified:
subversion/trunk/subversion/libsvn_ra_serf/options.c
Modified: subversion/trunk/subversion/libsvn_ra_serf/options.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_ra_serf/options.c?rev=1650481&r1=1650480&r2=1650481&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_ra_serf/options.c (original)
+++ subversion/trunk/subversion/libsvn_ra_serf/options.c Fri Jan 9 10:14:57 2015
@@ -226,7 +226,9 @@ capabilities_headers_iterator_callback(v
}
/* SVN-specific headers -- if present, server supports HTTP protocol v2 */
- else if (strncmp(key, "SVN", 3) == 0)
+ else if (!svn_ctype_casecmp(key[0], 'S')
+ && !svn_ctype_casecmp(key[1], 'V')
+ && !svn_ctype_casecmp(key[2], 'N'))
{
/* If we've not yet seen any information about supported POST
requests, we'll initialize the list/hash with "create-txn"