mirror of
				https://github.com/caddyserver/caddy.git
				synced 2025-11-03 19:17:29 -05:00 
			
		
		
		
	markdown: Fix 500 error (#2266)
This commit is contained in:
		
							parent
							
								
									d3b731e925
								
							
						
					
					
						commit
						89c20f9a55
					
				@ -142,7 +142,7 @@ func (md Markdown) ServeHTTP(w http.ResponseWriter, r *http.Request) (int, error
 | 
			
		||||
	case err == nil: // nop
 | 
			
		||||
	case os.IsPermission(err):
 | 
			
		||||
		return http.StatusForbidden, err
 | 
			
		||||
	case os.IsExist(err):
 | 
			
		||||
	case os.IsNotExist(err):
 | 
			
		||||
		return http.StatusNotFound, nil
 | 
			
		||||
	default: // did we run out of FD?
 | 
			
		||||
		return http.StatusInternalServerError, err
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user