Removes the ';' from the x-www-form-urlencoded body-processor comparison

This commit is contained in:
Felipe Zimmerle 2017-02-24 11:17:41 -03:00 committed by Felipe Zimmerle
parent d6363607aa
commit c3cb23f47d
No known key found for this signature in database
GPG Key ID: E6DFB08CE8B11277

View File

@ -541,7 +541,7 @@ int Transaction::addRequestHeader(const std::string& key,
if (keyl == "content-type") { if (keyl == "content-type") {
std::string multipart("multipart/form-data"); std::string multipart("multipart/form-data");
std::string urlencoded("application/x-www-form-urlencoded;"); std::string urlencoded("application/x-www-form-urlencoded");
std::string l = utils::string::tolower(value); std::string l = utils::string::tolower(value);
if (l.compare(0, multipart.length(), multipart) == 0) { if (l.compare(0, multipart.length(), multipart) == 0) {
this->m_requestBodyType = MultiPartRequestBody; this->m_requestBodyType = MultiPartRequestBody;