added: new flag: Request::using_ssl

true if the connections is encrypted by using SSL
changed: in BaseUrlRedirect
         we also check if the connection should use SSL 
         and if so then we make a redirect to "https://.."
changed: in 'static' mount points:
         if the request was e.g. "/styles/default.js?t=B49E5BQ"
         we should return a file "/styles/default.js" (without the "?..." part)
         additionally '#' character is checked



git-svn-id: svn://ttmath.org/publicrep/winix/trunk@762 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
2011-09-06 22:46:15 +00:00
parent 392e8060ba
commit 72be443414
4 changed files with 106 additions and 52 deletions

View File

@@ -119,11 +119,12 @@ private:
pthread_t signal_thread;
std::string url_to_fetch_on_exit;
std::string source_a;
std::string sendheadersstatic_t, sendheadersstatic_t2;
std::string sendh_t, sendh_t2, sendh_t3;
std::string sendfilea, sendfile2a;
void ProcessRequestThrow();
void ProcessRequest();
void BaseUrlRedirect(int code);
bool BaseUrlRedirect();
void MakePage();
void Make();
@@ -133,6 +134,8 @@ private:
void ReadRequest();
void SendAnswer();
void PrintEnv();
void SetEnv(const char * & env, const char * name);
void ReadEnvVariables();
void ReadGetPostVars();
@@ -141,10 +144,12 @@ private:
void CheckKonqueror();
void CheckRequestMethod();
void CheckFCGIRole();
void CheckSSL();
void PrepareSessionCookie();
void AddDebugInfo(std::wstring & out);
void FilterCompressSend(bool compressing, int compress_encoding, const std::wstring & source_ref);
bool SendHeadersStaticCreateResource();
void SendHeadersStatic();
void SendHeadersForbidden();
void SendHeadersRedirect();