mirror of
https://github.com/makeworld-the-better-one/amfora.git
synced 2024-11-26 10:15:13 +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
|
### Fixed
|
||||||
- Don't use cache when URL is typed in bottom bar (#159)
|
- 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
|
## [1.7.2] - 2020-12-21
|
||||||
### Fixed
|
### Fixed
|
||||||
|
@ -65,7 +65,7 @@ func MakePage(url string, res *gemini.Response, width, leftMargin int, proxied b
|
|||||||
|
|
||||||
buf := new(bytes.Buffer)
|
buf := new(bytes.Buffer)
|
||||||
_, err := io.CopyN(buf, res.Body, viper.GetInt64("a-general.page_max_size")+1)
|
_, err := io.CopyN(buf, res.Body, viper.GetInt64("a-general.page_max_size")+1)
|
||||||
res.Body.Close()
|
|
||||||
if err == nil {
|
if err == nil {
|
||||||
// Content was larger than max size
|
// Content was larger than max size
|
||||||
return nil, ErrTooLarge
|
return nil, ErrTooLarge
|
||||||
|
Loading…
Reference in New Issue
Block a user