fix static files
@@ -923,10 +923,12 @@ func GetStaticHandler(c echo.Context) error {
// Copy the original HTTP headers to our client
for k, vv := range resp.Header { // duplicate headers are acceptable in HTTP spec, so add all of them individually: https://stackoverflow.com/questions/4371328/are-duplicate-http-response-headers-acceptable
k = http.CanonicalHeaderKey(k)
+ if k != "Content-Length" && k != "Content-Encoding" { // https://github.com/alaingilbert/ogame/pull/80#issuecomment-674559853
for _, v := range vv {
c.Response().Header().Add(k, v)
}
}
+ }
if strings.Contains(c.Request().URL.String(), ".xml") {
body = replaceHostname(bot, body)
