projects
/
shibboleth
/
cpp-sp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
44ae07e
)
https://issues.shibboleth.net/jira/browse/SSPCPP-449
author
Scott Cantor
<cantor.2@osu.edu>
Tue, 1 May 2012 16:42:56 +0000
(16:42 +0000)
committer
Scott Cantor
<cantor.2@osu.edu>
Tue, 1 May 2012 16:42:56 +0000
(16:42 +0000)
shibsp/impl/XMLRequestMapper.cpp
patch
|
blob
|
history
diff --git
a/shibsp/impl/XMLRequestMapper.cpp
b/shibsp/impl/XMLRequestMapper.cpp
index
66ce4cc
..
cb894dd
100644
(file)
--- a/
shibsp/impl/XMLRequestMapper.cpp
+++ b/
shibsp/impl/XMLRequestMapper.cpp
@@
-643,8
+643,10
@@
pair<bool,DOMElement*> XMLRequestMapper::background_load()
RequestMapper::Settings XMLRequestMapper::getSettings(const HTTPRequest& request) const
{
try {
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) {
return Settings(o, o->getAC());
}
catch (XMLException& ex) {