Passthrough query parameters on /stack
This commit is contained in:
parent
740ae0d925
commit
b6adca7627
|
@ -40,6 +40,10 @@ func handleMedia(c *fiber.Ctx, url string) error {
|
||||||
url = strings.ReplaceAll(url, ".jpeg", ".webp")
|
url = strings.ReplaceAll(url, ".jpeg", ".webp")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if strings.HasPrefix(c.Path(), "/stack") {
|
||||||
|
url = url + "?" + strings.Split(c.OriginalURL(), "?")[1]
|
||||||
|
}
|
||||||
|
|
||||||
optionsHash := ""
|
optionsHash := ""
|
||||||
if utils.Config.ImageCache {
|
if utils.Config.ImageCache {
|
||||||
hasher := sha256.New()
|
hasher := sha256.New()
|
||||||
|
|
Loading…
Reference in New Issue