Merge pull request #992 from Choromanski/feature/fix-broken-images

Resolved errors with README images failing to load
pull/1054/head
Igor Chubin 2 weeks ago committed by GitHub
commit 792d7778ba
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -352,7 +352,7 @@ or, if you prefer Nerd Fonts instead of Emoji, `v2d` (day) or `v2n` (night):
```
![data-reach output format](https://wttr.in/files/example-wttr-v2.png)
![data-rich output format](https://wttr.in/files/example-wttr-v2.png)
(The mode is experimental, and it has several limitations currently:

@ -262,5 +262,5 @@ func setLogLevel(logLevel string) error {
func checkURLForPNG(r *http.Request) bool {
url := r.URL.String()
return strings.Contains(url, ".png")
return strings.Contains(url, ".png") && !strings.Contains(url, "/files/")
}

Loading…
Cancel
Save