wasm: fix wide character data download
Need to pass correct buffer size Change-Id: I19cb65114f49decc225cd807d59f1f08ad6b70c9 Fixes: QTBUG-76212 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
This commit is contained in:
parent
28af6e97e5
commit
570fb55a33
@ -135,8 +135,10 @@ static void q_loadCallback(val event)
|
|||||||
|
|
||||||
if (readyState == 4) { // done
|
if (readyState == 4) { // done
|
||||||
reply->setReplyAttributes(xhr["data-handler"].as<quintptr>(), status, statusText);
|
reply->setReplyAttributes(xhr["data-handler"].as<quintptr>(), status, statusText);
|
||||||
if (!responseString.isEmpty())
|
if (!responseString.isEmpty()) {
|
||||||
reply->dataReceived(responseString.toUtf8(), responseString.size());
|
QByteArray responseStringArray = responseString.toUtf8();
|
||||||
|
reply->dataReceived(responseStringArray, responseStringArray.size());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (status >= 400 && !statusText.isEmpty())
|
if (status >= 400 && !statusText.isEmpty())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user