git-svn-id: https://svn.middleware.georgetown.edu/cpp-sp/trunk@1243
cb58f699-b61c-0410-a6fe-
9272a202ed29
{
dynabuf ssl(5);
GetServerVariable(lpECB,"HTTPS",ssl,5);
{
dynabuf ssl(5);
GetServerVariable(lpECB,"HTTPS",ssl,5);
+ bool SSL=(ssl=="on" || ssl=="ON");
// URL path always come from IIS.
dynabuf url(256);
// URL path always come from IIS.
dynabuf url(256);
// Scheme may come from site def or be derived from IIS.
const char* scheme=site.m_scheme.c_str();
// Scheme may come from site def or be derived from IIS.
const char* scheme=site.m_scheme.c_str();
- if (!scheme || !*scheme || !g_bNormalizeRequest)
- scheme=lpECB->lpszMethod;
+ if (!scheme || !*scheme || !g_bNormalizeRequest) {
+ scheme = SSL ? "https" : "http";
+ }
// Start with scheme and hostname.
if (g_bNormalizeRequest) {
// Start with scheme and hostname.
if (g_bNormalizeRequest) {