changed: using PT::ToLower instead of ToSmall

using PT::ToUpper instead of ToCapital
         using PT::EqualNoCase instead of EqualNoCase
         



git-svn-id: svn://ttmath.org/publicrep/winix/trunk@1112 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
2018-05-25 17:22:12 +00:00
parent aa58faf145
commit 436a198c36
3 changed files with 32 additions and 99 deletions

View File

@@ -49,6 +49,7 @@
#include "misc.h"
#include "functions/functions.h"
#include "utf8/utf8.h"
#include "convert/convert.h"
namespace Winix
@@ -836,7 +837,7 @@ bool App::SaveEnvHTTPVariable(const char * env)
for( ; env[i] != 0 && env[i] != '=' && i < Request::INPUT_HEADER_NAME_MAX_LENGTH ; ++i)
{
header_name[i] = ToSmall(env[i]);
header_name[i] = PT::ToLower(env[i]);
}
header_name[i] = 0;
@@ -883,7 +884,7 @@ void App::ReadEnvRemoteIP()
{
http_header = L"HTTP_";
http_header += config.proxy_ip_header;
ToCapital(http_header);
PT::ToUpper(http_header);
PT::WideToUTF8(http_header, http_header_8bit);
v = FCGX_GetParam(http_header_8bit.c_str(), fcgi_request.envp);
@@ -909,16 +910,16 @@ void App::CheckRequestMethod()
if( !cur.request->env_request_method.empty() )
{
if( ToSmall(cur.request->env_request_method[0]) == 'g' )
if( PT::ToLower(cur.request->env_request_method[0]) == 'g' )
cur.request->method = Request::get;
else
if( ToSmall(cur.request->env_request_method[0]) == 'p' )
if( PT::ToLower(cur.request->env_request_method[0]) == 'p' )
cur.request->method = Request::post;
else
if( ToSmall(cur.request->env_request_method[0]) == 'h' )
if( PT::ToLower(cur.request->env_request_method[0]) == 'h' )
cur.request->method = Request::head;
else
if( ToSmall(cur.request->env_request_method[0]) == 'd' )
if( PT::ToLower(cur.request->env_request_method[0]) == 'd' )
cur.request->method = Request::delete_;
}
}
@@ -934,7 +935,7 @@ void App::CheckSSL()
if( config.assume_connection_is_through_ssl )
cur.request->using_ssl = true;
else
if( EqualNoCase(cur.request->env_https.c_str(), L"on") )
if( PT::EqualNoCase(cur.request->env_https.c_str(), L"on") )
cur.request->using_ssl = true;
}