[cpp-sp COMMIT] /branches/REL_2/shibsp/impl/XMLRequestMapper.cpp

noreply at shibboleth.net noreply at shibboleth.net
Tue May 1 17:42:56 BST 2012


Author: scantor
Date: Tue May  1 17:42:56 2012
New Revision: 3635

URL: http://svn.shibboleth.net/view/cpp-sp?rev=3635&view=rev
Log:
https://issues.shibboleth.net/jira/browse/SSPCPP-449

Modified:
    branches/REL_2/shibsp/impl/XMLRequestMapper.cpp

Modified: branches/REL_2/shibsp/impl/XMLRequestMapper.cpp
URL: http://svn.shibboleth.net/view/cpp-sp/branches/REL_2/shibsp/impl/XMLRequestMapper.cpp?rev=3635&r1=3634&r2=3635&view=diff
==============================================================================
--- branches/REL_2/shibsp/impl/XMLRequestMapper.cpp (original)
+++ branches/REL_2/shibsp/impl/XMLRequestMapper.cpp Tue May  1 17:42:56 2012
@@ -643,8 +643,10 @@
 RequestMapper::Settings XMLRequestMapper::getSettings(const HTTPRequest& request) const
 {
     try {
-        string vhost = string(request.getScheme()) + "://" + request.getHostname() + ':' + lexical_cast<string>(request.getPort());
-        const Override* o=m_impl->findOverride(vhost.c_str(), request);
+        string normalizedhost(request.getHostname());
+        to_lower(normalizedhost);
+        string vhost = string(request.getScheme()) + "://" + normalizedhost + ':' + lexical_cast<string>(request.getPort());
+        const Override* o = m_impl->findOverride(vhost.c_str(), request);
         return Settings(o, o->getAC());
     }
     catch (XMLException& ex) {



More information about the commits mailing list