okigan / awscurl

curl-like access to AWS resources with AWS Signature Version 4 request signing.
MIT License
769 stars 94 forks source link

fix: output option errors with text response #211

Closed jackie-linz closed 2 months ago

jackie-linz commented 2 months ago

fixes: #210

tested locally

$ python3 -m awscurl --service lambda https://ramopiru4w634m75ht2jtq7fea0ibyps.lambda-url.ap-southeast-2.on.aws/ -o out.json
{"data":"Hello from Lambda!"}

$ cat out.json 
{"data":"Hello from Lambda!"}