mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-19 15:01:22 +02:00
added real_ip and cloudflare_real_ip middlewares, fixed that some middlewares does not work properly
This commit is contained in:
@@ -50,7 +50,7 @@ func (b Builder) Build() NestedError {
|
||||
if len(b.errors) == 0 {
|
||||
return nil
|
||||
} else if len(b.errors) == 1 {
|
||||
return b.errors[0]
|
||||
return b.errors[0].Subjectf("%s", b.message)
|
||||
}
|
||||
return Join(b.message, b.errors...)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user