Modify setPath()

This commit is contained in:
an-tao 2019-01-04 18:34:27 +08:00
parent 70b0828c17
commit fc8e92e131
1 changed files with 1 additions and 9 deletions

View File

@ -135,15 +135,7 @@ class HttpRequestImpl : public HttpRequest
void setPath(const char *start, const char *end)
{
auto path = std::string(start, end);
if (path.find('+') != std::string::npos || path.find('%') != std::string::npos)
{
_path = urlDecode(path);
}
else
{
_path = path;
}
_path = urlDecode(std::string(start, end));
}
virtual void setPath(const std::string &path) override
{