diff --git a/packages/taler-util/package.json b/packages/taler-util/package.json index 21bee4683..eaf3cca5b 100644 --- a/packages/taler-util/package.json +++ b/packages/taler-util/package.json @@ -36,7 +36,8 @@ }, "imports": { "#twrpc-impl": { - "node": "./lib/twrpc-impl.node.js" + "node": "./lib/twrpc-impl.node.js", + "qtart": "./lib/twrpc-impl.qtart.js" }, "#compat-impl": { "node": "./lib/compat.node.js", diff --git a/packages/taler-util/src/http-impl.node.ts b/packages/taler-util/src/http-impl.node.ts index 5f2b3ac8a..da7a759aa 100644 --- a/packages/taler-util/src/http-impl.node.ts +++ b/packages/taler-util/src/http-impl.node.ts @@ -97,7 +97,7 @@ export class HttpLibImpl implements HttpRequestLibrary { const options: RequestOptions = { protocol: parsedUrl.protocol, port: parsedUrl.port, - host: parsedUrl.host, + host: parsedUrl.hostname, method: method, path: parsedUrl.pathname, headers: opt?.headers, @@ -148,7 +148,7 @@ export class HttpLibImpl implements HttpRequestLibrary { }); if (reqBody) { - req.write(reqBody); + req.write(new Uint8Array(reqBody)); } req.end(); });