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:
2011-09-16 22:46:42 +00:00
parent f113e2ef31
commit 60f0e62c23
11 changed files with 546 additions and 307 deletions

View File

@@ -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;