Properly fill UploadedFile::filename field

Closes #8928.
This commit is contained in:
Vladimir Golovnev (Glassez) 2018-05-16 20:13:55 +03:00 committed by sledgehammer999
parent 2e474fd8db
commit 5c3d9ffb46
No known key found for this signature in database
GPG key ID: 6E4A2D025B7CC9A2

View file

@ -291,7 +291,7 @@ bool RequestParser::parseFormData(const QByteArray &data)
const QLatin1String name("name");
if (headersMap.contains(filename)) {
m_request.files.append({filename, headersMap[HEADER_CONTENT_TYPE], payload});
m_request.files.append({headersMap[filename], headersMap[HEADER_CONTENT_TYPE], payload});
}
else if (headersMap.contains(name)) {
m_request.posts[headersMap[name]] = payload;