Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
net/http: also make Transport retry POST request if no bytes were written #15723
We should retry non-idempotent HTTP requests (like POSTs) too if no bytes were ever written.
A fix for #15446 adds tracking of the number of bytes written. This makes this trivial to fix, but it's too late for Go 1.7.
Easy to switch early in Go 1.8. Could also use a few more tests.