mirror of
https://github.com/makeworld-the-better-one/amfora.git
synced 2024-11-22 15:46:51 +03:00
Merge branch 'master' into mediatype-handlers
This commit is contained in:
commit
5d7426f116
@ -10,6 +10,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
|
||||
### Fixed
|
||||
- Don't use cache when URL is typed in bottom bar (#159)
|
||||
- Fix downloading of pages that are too large or timed out
|
||||
|
||||
|
||||
## [1.7.2] - 2020-12-21
|
||||
### Fixed
|
||||
|
@ -65,7 +65,7 @@ func MakePage(url string, res *gemini.Response, width, leftMargin int, proxied b
|
||||
|
||||
buf := new(bytes.Buffer)
|
||||
_, err := io.CopyN(buf, res.Body, viper.GetInt64("a-general.page_max_size")+1)
|
||||
res.Body.Close()
|
||||
|
||||
if err == nil {
|
||||
// Content was larger than max size
|
||||
return nil, ErrTooLarge
|
||||
|
Loading…
Reference in New Issue
Block a user