We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f23ef91 commit a157e24Copy full SHA for a157e24
lib/src/http_wasm.cc
@@ -210,6 +210,7 @@ class HTTPWasmClient : public HTTPClient {
210
try {
211
var z = encodeURI(UTF8ToString(ptr1));
212
if (z === "Host") z = "X-Host-Override";
213
+ if (z === "User-Agent") z = "X-user-agent";
214
if (z === "Authorization") {
215
xhr.setRequestHeader(z, UTF8ToString(ptr2));
216
} else {
@@ -341,6 +342,7 @@ class HTTPWasmClient : public HTTPClient {
341
342
343
344
345
346
347
348
0 commit comments