net/http: Do(): url.Error value's Timeout is false if request canceled #33545
What did you do?
Run the following: https://play.golang.org/p/jjlki46yvxi
What did you expect to see?
According to the docs of
What did you see instead?
The url.Error value's Timeout method reports false if request was canceled.
In contrast, if you run https://play.golang.org/p/xdNeyWl3Zc7, as the docs correctly state, the url.Error value's Timeout method reports true if request timed out.
The doc change got introduced in 6df4c3a.
The same documentation
also exists for
The text was updated successfully, but these errors were encountered: