Revision: 34899
http://sourceforge.net/p/opalvoip/code/34899
Author: rjongbloed
Date: 2016-08-01 12:32:27 +0000 (Mon, 01 Aug 2016)
Log Message:
-----------
Added extra logging for when PSecureHTTPServiceProcess redirects http to https
Modified Paths:
--------------
ptlib/trunk/src/ptclib/shttpsvc.cxx
Modified: ptlib/trunk/src/ptclib/shttpsvc.cxx
===================================================================
--- ptlib/trunk/src/ptclib/shttpsvc.cxx 2016-08-01 09:30:56 UTC (rev 34898)
+++ ptlib/trunk/src/ptclib/shttpsvc.cxx 2016-08-01 12:32:27 UTC (rev 34899)
@@ -183,7 +183,7 @@
}
PBoolean PSecureHTTPServiceProcess::OnDetectedNonSSLConnection(PChannel * chan, const PString & line)
-{
+{
// get the MIME info
PMIMEInfo mime(*chan);
@@ -214,7 +214,10 @@
}
}
- PString str = CreateNonSSLMessage(PString("http://") + url);
+ url.Splice("http://", 0);
+ PSYSTEMLOG(Info, "Detected non-SSL connection, redirecting to " << url);
+
+ PString str = CreateNonSSLMessage(url);
chan->WriteString(str);
chan->Close();
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|