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:
09e3755
)
Convert to new server name API
author
Scott Cantor
<cantor.2@osu.edu>
Tue, 27 Mar 2012 17:54:08 +0000
(17:54 +0000)
committer
Scott Cantor
<cantor.2@osu.edu>
Tue, 27 Mar 2012 17:54:08 +0000
(17:54 +0000)
apache/mod_apache.cpp
patch
|
blob
|
history
diff --git
a/apache/mod_apache.cpp
b/apache/mod_apache.cpp
index
357a82a
..
1da37e2
100644
(file)
--- a/
apache/mod_apache.cpp
+++ b/
apache/mod_apache.cpp
@@
-374,7
+374,11
@@
public:
return HTTPRequest::isSecure();
}
const char* getHostname() const {
- return ap_get_server_name(m_req);
+#ifdef SHIB_APACHE_24
+ return ap_get_server_name_for_url(m_req);
+#else
+ return ap_get_server_name(m_req);
+#endif
}
int getPort() const {
return ap_get_server_port(m_req);