gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-quickjs-tart] branch master updated: -logic


From: gnunet
Subject: [taler-quickjs-tart] branch master updated: -logic
Date: Tue, 27 Feb 2024 18:43:44 +0100

This is an automated email from the git hooks/post-receive script.

dold pushed a commit to branch master
in repository quickjs-tart.

The following commit(s) were added to refs/heads/master by this push:
     new 3558a05  -logic
3558a05 is described below

commit 3558a050fa556e6a6342888b9ad60a04430b0277
Author: Florian Dold <florian@dold.me>
AuthorDate: Tue Feb 27 18:43:37 2024 +0100

    -logic
---
 quickjs/quickjs-http.c | 2 ++
 quickjs/quickjs-libc.c | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/quickjs/quickjs-http.c b/quickjs/quickjs-http.c
index e303b28..e831055 100644
--- a/quickjs/quickjs-http.c
+++ b/quickjs/quickjs-http.c
@@ -269,6 +269,8 @@ create_impl(void *cls, struct JSHttpRequestInfo *req_info)
         assert(0);
     }
 
+    printf("request body len %llu:\n", (unsigned long long) 
req_info->req_body_len);
+
     if (0 == strcasecmp(req_info->method, "get")) {
         curl_easy_setopt(curl, CURLOPT_HTTPGET, 1L);
     } else if (0 == strcasecmp(method, "delete")) {
diff --git a/quickjs/quickjs-libc.c b/quickjs/quickjs-libc.c
index 55f9871..96b419b 100644
--- a/quickjs/quickjs-libc.c
+++ b/quickjs/quickjs-libc.c
@@ -2439,7 +2439,7 @@ static JSValue js_os_fetchHttp(JSContext *ctx, 
JSValueConst this_val,
             if (JS_IsException(data)) {
                 goto exception;
             }
-            if (JS_IsNull(data) || JS_IsUndefined(data)) {
+            if (!(JS_IsNull(data) || JS_IsUndefined(data))) {
               data_ptr = JS_GetArrayBuffer(ctx, &data_len, data);
               if (!data_ptr) {
                   goto exception;

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]