Fix compilation errors
This commit is contained in:
parent
8f856b927a
commit
2d863af60e
@ -251,7 +251,7 @@ QJsonObject recurseAndReplace(QJsonObject &body, QByteArray &data, QString forma
|
|||||||
} else if (v.isString()) {
|
} else if (v.isString()) {
|
||||||
QString str = v.toString();
|
QString str = v.toString();
|
||||||
if (str.startsWith("/") && str.endsWith("/")) {
|
if (str.startsWith("/") && str.endsWith("/")) {
|
||||||
o.insert(s, substituteArgs(str.toUtf8(), format, data));
|
o.insert(s, QString::fromUtf8(substituteArgs(str.toUtf8(), format, data)));
|
||||||
} else
|
} else
|
||||||
o.insert(s, v);
|
o.insert(s, v);
|
||||||
} else
|
} else
|
||||||
@ -320,7 +320,7 @@ void CustomUploader::doUpload(QByteArray imgData, QString format) {
|
|||||||
headerVal = headerVal.mid(2);
|
headerVal = headerVal.mid(2);
|
||||||
QByteArray str = valo[headerVal].toString().toUtf8();
|
QByteArray str = valo[headerVal].toString().toUtf8();
|
||||||
if (str.startsWith("/") && str.endsWith("/")) str = substituteArgs(str, format);
|
if (str.startsWith("/") && str.endsWith("/")) str = substituteArgs(str, format);
|
||||||
part.setRawHeader(headerVal.toLatin1(), str;
|
part.setRawHeader(headerVal.toLatin1(), str);
|
||||||
} else if (headerVal != "body")
|
} else if (headerVal != "body")
|
||||||
cdh += "; " + headerVal + "=\"" + valo[headerVal].toString().replace("\"", "\\\"") + "\"";
|
cdh += "; " + headerVal + "=\"" + valo[headerVal].toString().replace("\"", "\\\"") + "\"";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user