move copypostfields to the pointer options; fix accidentally reverting part of test
This commit is contained in:
parent
b291110ffa
commit
f76c284ae9
2 changed files with 2 additions and 2 deletions
2
ffi.bqn
2
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
|
||||
|
|
|
@ -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
|
||||
}
|
||||
⟩
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue