diff --git a/steamcache/steamcache.go b/steamcache/steamcache.go index b74240b..a673de4 100644 --- a/steamcache/steamcache.go +++ b/steamcache/steamcache.go @@ -502,13 +502,13 @@ func (sc *SteamCache) ServeHTTP(w http.ResponseWriter, r *http.Request) { return } - // Method 2: Content-Type Validation (Steam files should be binary) + // Method 2: Content-Type Validation (Steam files should be application/x-steam-chunk) contentType := resp.Header.Get("Content-Type") - if contentType != "" && !strings.Contains(contentType, "application/octet-stream") { + if contentType != "" && !strings.Contains(contentType, "application/x-steam-chunk") { logger.Logger.Warn(). Str("url", req.URL.String()). Str("content_type", contentType). - Msg("Unexpected content type from Steam") + Msg("Unexpected content type from Steam - expected application/x-steam-chunk") } // Method 3: Content-Length Validation