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 } ⟩