Frank Meyer

Results 22 comments of Frank Meyer

An empty string is not valid json. The stdlib throws an error as well: `unexpected end of JSON input`. > can't understand this error is a valid case? To answer...

I think that has nothing to do with gorequest directly, cuz it's using the net/http package underneath. General speaking all headers get lost at a redirect, see https://github.com/golang/go/issues/4800 There is...

Maybe this does the trick: ``` go gorequest. New(). Post("http://httpbin.org/post"). Type("multipart"). SendFile("./test.png"). Set("Content-Type", "image/png"). End() ``` In you http.Post example, i assume that the content type `application/json` should also be...

**TL;DR** The content type `image/png` with binary data isn't supported native yet. I see the problem: The content type `image/png` isn't supported native, therefore i used the `multipart` type. So...

We are facing same issue but on CircleCI with Linux based Dockerfile. I played around and downgrading to 1.45.0 seem to help. Copying here the setup step from CircleCI, maybe...

Confirmed, it worked on our side! Thanks a lot! 🙇‍♂️

Same here but for regular Marshal and MarshalIndent: https://go.dev/play/p/c-ddkeoZ7Dr Go: `go version go1.20.1 darwin/amd64` MacOS Ventura 13.2.1: `Darwin xxx.local 22.3.0 Darwin Kernel Version 22.3.0: Mon Jan 30 20:42:11 PST 2023;...

Thanks for opening this PR, will take a look at it upcoming weekend and/or week!

Hey @Rhymond - is this feature still wanted? Do you think you can find some time in the next couple of weeks to address my comments? Thanks a lot!