HttpZipLocator: fix unsupported exception on HTTPS URLs
This commit is contained in:
		
							parent
							
								
									02322d04cc
								
							
						
					
					
						commit
						550255b1d5
					
				| @ -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(); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user