1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-14 08:48:17 +00:00

Merge pull request #4441 from naikel/upload_fix

Multiple Torrents Uploads Fix.  Closes #4428
This commit is contained in:
sledgehammer999 2015-12-31 16:27:03 -06:00
commit ef1261de45
2 changed files with 3 additions and 2 deletions

View File

@ -319,7 +319,7 @@ bool RequestParser::parseFormData(const QByteArray& data)
ufile.type = disposition["content-type"];
ufile.data = data.mid(header_end + EOH.length());
m_request.files[disposition["name"]] = ufile;
m_request.files.append(ufile);
}
else {
m_request.posts[disposition["name"]] = QString::fromUtf8(data.mid(header_end + EOH.length()));

View File

@ -32,6 +32,7 @@
#include <QString>
#include <QMap>
#include <QHostAddress>
#include <QVector>
typedef QMap<QString, QString> QStringMap;
@ -70,7 +71,7 @@ namespace Http
QStringMap headers;
QStringMap gets;
QStringMap posts;
QMap<QString, UploadedFile> files;
QVector<UploadedFile> files;
};
struct ResponseStatus