Fix the Multipart parser error for unknown content type

This commit is contained in:
Felipe Zimmerle 2017-03-28 09:38:10 -03:00
parent 80cfca6fa3
commit d15b57895b
No known key found for this signature in database
GPG Key ID: E6DFB08CE8B11277

View File

@ -726,7 +726,11 @@ int Transaction::processRequestBody() {
} else if (m_requestBodyType == WWWFormUrlEncoded) { } else if (m_requestBodyType == WWWFormUrlEncoded) {
m_variableOffset++; m_variableOffset++;
extractArguments("POST", m_requestBody.str(), m_variableOffset); extractArguments("POST", m_requestBody.str(), m_variableOffset);
} else if (a != NULL) { } else if (m_requestBodyType != UnknownFormat) {
/**
* FIXME: double check to see if that is a valid scenario...
*
*/
std::string error; std::string error;
if (a != NULL && a->empty() == false) { if (a != NULL && a->empty() == false) {
error.assign(*a); error.assign(*a);