changed: we do not make a 'base redirect' when the request method is POST
changed: ConfParser -- now we have spaces (only one level) git-svn-id: svn://ttmath.org/publicrep/winix/trunk@767 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -189,6 +189,9 @@ bool App::BaseUrlRedirect()
|
||||
{
|
||||
if( config.base_url.empty() )
|
||||
return false;
|
||||
|
||||
if( cur.request->method == Request::post )
|
||||
return false;
|
||||
|
||||
if( Equal(config.base_url.c_str(), cur.request->env_http_host) )
|
||||
return false;
|
||||
@@ -202,6 +205,9 @@ return true;
|
||||
|
||||
bool App::ShouldChangeToSSL()
|
||||
{
|
||||
if( cur.request->method == Request::post )
|
||||
return false;
|
||||
|
||||
if( !config.use_ssl || cur.request->using_ssl )
|
||||
return false;
|
||||
|
||||
|
Reference in New Issue
Block a user