mirror of
				https://github.com/packwiz/packwiz-installer.git
				synced 2025-11-04 12:34:31 +01:00 
			
		
		
		
	Fix RequestHandlerGithub heuristics, so that Github Releases files work properly
This commit is contained in:
		@@ -65,7 +65,7 @@ class RequestHandlerGithub : RequestHandlerZip(true) {
 | 
			
		||||
		if (!("http" == scheme || "https" == scheme)) {
 | 
			
		||||
			return false
 | 
			
		||||
		}
 | 
			
		||||
		return "github.com" == loc.host
 | 
			
		||||
		// TODO: sanity checks, support for more github urls
 | 
			
		||||
		// TODO: more match testing?
 | 
			
		||||
		return "github.com" == loc.host && branchMatcherPattern.matcher(loc.path).matches()
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user