Fix Content-Type bug
This commit is contained in:
parent
739dabe7b4
commit
dea4829786
|
@ -30,7 +30,11 @@ using namespace drogon;
|
|||
|
||||
void HttpRequestImpl::parsePremeter()
|
||||
{
|
||||
const std::string &type=getHeader("Content-Type");
|
||||
std::string type=getHeader("Content-Type");
|
||||
if(type.empty())
|
||||
{
|
||||
type=getHeader("content-type");
|
||||
}
|
||||
const std::string &input=query();
|
||||
if(_method==kGet||(_method==kPost&&(type==""||type.find("application/x-www-form-urlencoded")!=std::string::npos)))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue