go-json-rest icon indicating copy to clipboard operation
go-json-rest copied to clipboard

Request body discard added

Open JekaMas opened this issue 8 years ago • 2 comments

Good day to you! We have couple of errors in prod because of DecodeJsonPayload doesn`t discard the remaining response body data in 100% cases. It should be done in GO 1.5+

JekaMas avatar Mar 01 '16 16:03 JekaMas

Nice!

ChrisLundquist avatar Mar 06 '16 04:03 ChrisLundquist

Hi!

Thanks for your Pull Request! And sorry for my very slow response. Do you have any reference to this bug I could add in comment ? Is it the way it was fixed in go1.5 ? Or do you think that fix should be enabled only for some version of Go by checking runtime.Version() ?

Antoine

ant0ine avatar Apr 10 '16 22:04 ant0ine