소스 검색

HttpZipLocator: fix unsupported exception on HTTPS URLs

shadowislord 10 년 전
부모
커밋
550255b1d5
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      jme3-core/src/plugins/java/com/jme3/asset/plugins/HttpZipLocator.java

+ 2 - 2
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();