mirror of
https://github.com/yusing/godoxy.git
synced 2026-03-31 22:23:14 +02:00
http: increase default response header timeout to 60s, add option to customize it, schema update
This commit is contained in:
@@ -76,9 +76,7 @@ func (err *nestedError) Error() string {
|
||||
if err.Err != nil {
|
||||
lines = append(lines, makeLine(err.Err.Error(), 0))
|
||||
}
|
||||
if extras := makeLines(err.Extras, 1); len(extras) > 0 {
|
||||
lines = append(lines, extras...)
|
||||
}
|
||||
lines = append(lines, makeLines(err.Extras, 1)...)
|
||||
return strutils.JoinLines(lines)
|
||||
}
|
||||
|
||||
@@ -104,9 +102,7 @@ func makeLines(errs []error, level int) []string {
|
||||
if err.Err != nil {
|
||||
lines = append(lines, makeLine(err.Err.Error(), level))
|
||||
}
|
||||
if extras := makeLines(err.Extras, level+1); len(extras) > 0 {
|
||||
lines = append(lines, extras...)
|
||||
}
|
||||
lines = append(lines, makeLines(err.Extras, level+1)...)
|
||||
default:
|
||||
lines = append(lines, makeLine(err.Error(), level))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user