Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When the requested server is completely non-responsive, and err!=nil, res will be nil. The references to StatusCode and Body.Close() will cause a SIGSEGV. If err!=nil, don’t reference res.
- Loading branch information