3
0
Mirror von https://github.com/GeyserMC/Geyser.git synchronisiert 2024-11-19 14:30:17 +01:00

Warn about content-type being null/not application/zip

Dieser Commit ist enthalten in:
onebeastchris 2024-07-01 14:19:21 +02:00
Ursprung e214fbe277
Commit 1608746afd

Datei anzeigen

@ -133,7 +133,8 @@ public class WebUtils {
// This doesn't seem to be a requirement (anymore?). Logging to debug as it might be interesting though.
if (type == null || !type.equals("application/zip")) {
logger.info(String.format("Application type from remote pack at URL: %s (type: %s)", url, type));
logger.warning(String.format("Application type received from remote pack at URL %s uses the content type: %s! This may result in packs not loading " +
"for Bedrock players.", url, type));
}
Path packMetadata = REMOTE_PACK_CACHE.resolve(url.hashCode() + ".metadata");