move copypostfields to the pointer options; fix accidentally reverting part of test

This commit is contained in:
tankorsmash 2025-03-16 12:32:00 -04:00
parent b291110ffa
commit f76c284ae9
2 changed files with 2 additions and 2 deletions

View file

@ -62,7 +62,6 @@ curlOptions←{
# long integer options
postfieldsize60 # size of the POST input data
copypostfields10165 # copy POST input data
timeout78 # timeout in seconds
timeoutms155 # timeout in milliseconds
@ -75,6 +74,7 @@ curlOptions←{
writedataptrOffset+1 # FILE* in which to write response content
postfieldsptrOffset+15 # pointer to POST input data
headerdataptrOffset+29 # FILE* in which to write response headers
copypostfieldsptrOffset+165 # copy POST input data
# linked list options
httpHeaderslistOffset+23 # HTTP headers as a list of strings

View file

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