[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] branch master updated: -fix node http invocation
From: |
gnunet |
Subject: |
[taler-wallet-core] branch master updated: -fix node http invocation |
Date: |
Thu, 16 Feb 2023 12:29:04 +0100 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository wallet-core.
The following commit(s) were added to refs/heads/master by this push:
new 42741e558 -fix node http invocation
42741e558 is described below
commit 42741e55831f76938d9634d690dc7ba8c51160d4
Author: Florian Dold <florian@dold.me>
AuthorDate: Thu Feb 16 12:28:56 2023 +0100
-fix node http invocation
---
packages/taler-util/package.json | 3 ++-
packages/taler-util/src/http-impl.node.ts | 4 ++--
2 files changed, 4 insertions(+), 3 deletions(-)
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();
});
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-wallet-core] branch master updated: -fix node http invocation,
gnunet <=