Added memoryfilesystem and working on c wrapper
This commit is contained in:
@ -85,6 +85,16 @@ namespace Tesses::Framework::Http
|
||||
data->currentHeaders.Clear();
|
||||
return 0;
|
||||
}*/
|
||||
std::string ServerContext::GetUrlWithQuery()
|
||||
{
|
||||
if(this->queryParams.kvp.empty()) return this->path;
|
||||
return this->path + "?" + HttpUtils::QueryParamsEncode(this->queryParams);
|
||||
}
|
||||
std::string ServerContext::GetOriginalPathWithQuery()
|
||||
{
|
||||
if(this->queryParams.kvp.empty()) return this->originalPath;
|
||||
return this->originalPath + "?" + HttpUtils::QueryParamsEncode(this->queryParams);
|
||||
}
|
||||
bool ServerContext::NeedToParseFormData()
|
||||
{
|
||||
std::string ct;
|
||||
|
||||
@ -381,7 +381,7 @@ namespace Tesses::Framework::Http {
|
||||
s.push_back(item);
|
||||
else if(item >= '0' && item <= '9')
|
||||
s.push_back(item);
|
||||
else if(item == '-' || item == '_' || item == '.' || item == '~')
|
||||
else if(item == '-' || item == '_' || item == '.' || item == '~' || item == '/')
|
||||
s.push_back(item);
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user