[go-nuts] Re: go1.8 and json.NewDecoder(resp.Body)

2017-05-23 Thread Dmitri Shuralyov
Relevant: https://github.com/google/go-github/pull/317 See the discussion and the CLs to Go std lib that Brad sent out as a result. On Tuesday, May 23, 2017 at 8:34:03 AM UTC-4, John Shahid wrote: > > Hi all, > > Some background, we (CloudFoundry) noticed some weird behavior after > upgrading f

[go-nuts] Re: go1.8 and json.NewDecoder(resp.Body)

2017-05-23 Thread Jim Robinson
I'd suggest the latter, drain the reader as the last step. Perhaps define a DrainReadCloser that can fully drain the input ReadCloser as part of its closing operation? -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this g