Empty headers in WASM 6.6.2.
-
When I compile my app for WASM v6.5.2, all my network functions works perfectly. But when I compile for WASM v6.6.2, I get some random errors regarding empty request headers or String contains invalid code in request headers,...
This is how I set all my headers:
request.setRawHeader(QByteArray("Accept"), QByteArray("Application/json")); request.setRawHeader(QByteArray("X-API-Key"), globalData3.toUtf8()); request.setRawHeader(QByteArray("Content-Type"), QByteArray("Application/json"));
appWebTimeSlipAdmin.js:9 Uncaught TypeError: Failed to execute 'setRequestHeader' on 'XMLHttpRequest': String contains non ISO-8859-1 code point.
at fetchXHR (appWebTimeSlipAdmin.js:9:227856)
at performUncachedXhr (appWebTimeSlipAdmin.js:9:233711)
at getRequest.onsuccess (appWebTimeSlipAdmin.js:9:231449)I get no errors when compiling for WASM 6.5.2.
It works perfectly when I compile for MacOS 6.6.2.
I'm getting this random set request header only when I compile for WASM 6.6.2.
I had to rollback my application to 6.5.2. WASM 6.6.2 is unusable for me.
-
@doumdi said in Empty headers in WASM 6.6.2.:
I have the exact same problem, C++ code for requests generates unusable headers (empty or non ISO-8859-1). Any way to fix this problem ?
I think this might be fixed in the new release : https://bugreports.qt.io/browse/QTBUG-122893