From f76c284ae973896d14e0e765ea30b92a2f76a9d3 Mon Sep 17 00:00:00 2001 From: tankorsmash Date: Sun, 16 Mar 2025 12:32:00 -0400 Subject: [PATCH] move copypostfields to the pointer options; fix accidentally reverting part of test --- ffi.bqn | 2 +- tests.bqn | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ffi.bqn b/ffi.bqn index 8e062aa..6d40c46 100644 --- a/ffi.bqn +++ b/ffi.bqn @@ -62,7 +62,6 @@ curlOptions←{ # long integer options postfieldsize⇐60 # size of the POST input data - copypostfields⇐10165 # copy POST input data timeout⇐78 # timeout in seconds timeoutms⇐155 # timeout in milliseconds @@ -75,6 +74,7 @@ curlOptions←{ writedata⇐ptrOffset+1 # FILE* in which to write response content postfields⇐ptrOffset+15 # pointer to POST input data headerdata⇐ptrOffset+29 # FILE* in which to write response headers + copypostfields⇐ptrOffset+165 # copy POST input data # linked list options httpHeader⇐slistOffset+23 # HTTP headers as a list of strings diff --git a/tests.bqn b/tests.bqn index 4db5dcf..b866dd2 100755 --- a/tests.bqn +++ b/tests.bqn @@ -43,7 +43,7 @@ simpleAPI_testsuite←⟨ ! 1=+´"Content-Type: "⍷r.headers ! 1=+´"Content-Length: "⍷r.headers ! 1=+´"""Content-Type"": ""application/json"""⍷r.content - ! 1=+´"""data"": ""{\""key\"": \""value\""}"""⍷r.content + ! 1=+´"""data"": ""{\""key\"": 1}"""⍷ r.content } ⟩