Merge pull request #58 from linkjayy/dev

Add URL-Encoding to base64
This commit is contained in:
ArsenArsen 2018-02-25 21:13:05 +01:00 committed by GitHub
commit db651220f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -265,7 +265,7 @@ QJsonObject recurseAndReplace(QJsonObject &body, QByteArray &data, QString forma
void CustomUploader::doUpload(QByteArray imgData, QString format) {
auto h = getHeaders(headers, format, this->rFormat);
QByteArray data;
if (base64) imgData = imgData.toBase64();
if (base64) imgData = imgData.toBase64(QByteArray::Base64UrlEncoding);
switch (this->rFormat) {
case RequestFormat::PLAIN: {