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:
@@ -63,6 +63,7 @@ void Request::Clear()
|
||||
env_fcgi_role = &char_empty;
|
||||
env_content_type = &char_empty;
|
||||
env_http_accept_encoding = &char_empty;
|
||||
env_https = &char_empty;
|
||||
|
||||
item_tab.clear();
|
||||
item.Clear();
|
||||
@@ -81,6 +82,8 @@ void Request::Clear()
|
||||
redirect_type = 303;
|
||||
x_sendfile.clear();
|
||||
send_as_attachment = false;
|
||||
|
||||
using_ssl = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -171,20 +174,6 @@ return &p->second;
|
||||
|
||||
|
||||
|
||||
/*
|
||||
void Request::PrintEnv()
|
||||
{
|
||||
char ** e;
|
||||
|
||||
debug << "environment variables:\n";
|
||||
|
||||
for( e = env ; *e ; ++e )
|
||||
debug << ' ' << *e << "\n";
|
||||
|
||||
debug << '\n';
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
bool Request::AllPostVarEmpty()
|
||||
{
|
||||
|
Reference in New Issue
Block a user