From 550255b1d5ed937d852b21706b3d471c66b0ed2d Mon Sep 17 00:00:00 2001 From: shadowislord Date: Tue, 24 Feb 2015 21:49:06 -0500 Subject: [PATCH] HttpZipLocator: fix unsupported exception on HTTPS URLs --- .../plugins/java/com/jme3/asset/plugins/HttpZipLocator.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jme3-core/src/plugins/java/com/jme3/asset/plugins/HttpZipLocator.java b/jme3-core/src/plugins/java/com/jme3/asset/plugins/HttpZipLocator.java index ab964ab2c..af7026206 100644 --- a/jme3-core/src/plugins/java/com/jme3/asset/plugins/HttpZipLocator.java +++ b/jme3-core/src/plugins/java/com/jme3/asset/plugins/HttpZipLocator.java @@ -298,8 +298,8 @@ public class HttpZipLocator implements AssetLocator { } public void load(URL url) throws IOException { - if (!url.getProtocol().equals("http")) - throw new UnsupportedOperationException(); + if (!url.getProtocol().equals("http") && !url.getProtocol().equals("https")) + throw new UnsupportedOperationException("HttpZipLocator only supports HTTP(S) URLs"); zipUrl = url; readEndHeader();