[cpp-sp COMMIT] /branches/REL_2/apache/mod_apache.cpp
noreply at shibboleth.net
noreply at shibboleth.net
Tue Mar 27 18:54:08 BST 2012
Author: scantor
Date: Tue Mar 27 18:54:08 2012
New Revision: 3599
URL: http://svn.shibboleth.net/view/cpp-sp?rev=3599&view=rev
Log:
Convert to new server name API
Modified:
branches/REL_2/apache/mod_apache.cpp
Modified: branches/REL_2/apache/mod_apache.cpp
URL: http://svn.shibboleth.net/view/cpp-sp/branches/REL_2/apache/mod_apache.cpp?rev=3599&r1=3598&r2=3599&view=diff
==============================================================================
--- branches/REL_2/apache/mod_apache.cpp (original)
+++ branches/REL_2/apache/mod_apache.cpp Tue Mar 27 18:54:08 2012
@@ -374,7 +374,11 @@
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);
More information about the commits
mailing list