mirror of
https://codeberg.org/davrot/forgejo.git
synced 2025-06-26 17:00:04 +02:00
fix various typos (#7690)
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/7690 Reviewed-by: Gusted <gusted@noreply.codeberg.org> Reviewed-by: floss4good <floss4good@noreply.codeberg.org> Reviewed-by: Beowulf <beowulf@beocode.eu> Co-authored-by: Ellen Emilia Anna Zscheile <fogti+devel@ytrizja.de> Co-committed-by: Ellen Emilia Anna Zscheile <fogti+devel@ytrizja.de>
This commit is contained in:
parent
56149081d4
commit
ff87a1daf2
9 changed files with 21 additions and 22 deletions
|
@ -192,7 +192,7 @@ func (c *Client) GetBody(uri string) ([]byte, error) {
|
|||
}
|
||||
defer response.Body.Close()
|
||||
if response.ContentLength > setting.Federation.MaxSize {
|
||||
return nil, fmt.Errorf("Request returned %d bytes (max allowed incomming size: %d bytes)", response.ContentLength, setting.Federation.MaxSize)
|
||||
return nil, fmt.Errorf("Request returned %d bytes (max allowed incoming size: %d bytes)", response.ContentLength, setting.Federation.MaxSize)
|
||||
} else if response.ContentLength == -1 {
|
||||
log.Warn("Request to %v returned an unknown content length, response may be truncated to %d bytes", uri, setting.Federation.MaxSize)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue