mirror of
https://github.com/yusing/godoxy.git
synced 2026-01-11 22:30:47 +01:00
fix(favicon): add status code in error message
This commit is contained in:
@@ -210,7 +210,7 @@ func findIconSlow(ctx context.Context, r httpRoute, uri string, stack []string)
|
||||
return findIconSlow(ctx, r, loc, append(stack, newReq.URL.Path))
|
||||
}
|
||||
}
|
||||
return FetchResultWithErrorf(c.status, "upstream error: %s", c.data)
|
||||
return FetchResultWithErrorf(c.status, "upstream error: status %d, %s", c.status, c.data)
|
||||
}
|
||||
// return icon data
|
||||
if !httputils.GetContentType(c.header).IsHTML() {
|
||||
|
||||
Reference in New Issue
Block a user