v1.0.5
This commit is contained in:
1 parent
d340d1b2ad
commit
7ccd84cd96
101 files changed
+2070
-344
No files matched your search
@@ -19,9 +19,11 @@ func (e *HTTPError) Error() string {
|
||||
if statusText := http.StatusText(e.StatusCode); statusText != "" {
|
||||
status += " " + statusText
|
||||
}
|
||||
|
||||
if len(e.Body) == 0 {
|
||||
return status
|
||||
}
|
||||
|
||||
return status + ": " + string(e.Body)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user