mirror of
				https://github.com/lxsang/silk.git
				synced 2025-10-31 02:15:47 +01:00 
			
		
		
		
	fix: incorrect directory mime query
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				gitea-sync/silk/pipeline/head This commit looks good
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	gitea-sync/silk/pipeline/head This commit looks good
				
			This commit is contained in:
		| @@ -76,6 +76,9 @@ function std.extra_mime(name) | ||||
| end | ||||
|  | ||||
| function std.mimeOf(name) | ||||
|     if ulib.is_dir(name) then | ||||
|         return "dir" | ||||
|     end | ||||
|     local mime = std.mime(utils.ext(name)) | ||||
|     if mime ~= "application/octet-stream" then | ||||
|         return mime | ||||
|   | ||||
		Reference in New Issue
	
	Block a user