Merge pull request #3567 from bsdelf/feature/ensure-custom-error-handler
Ensure custom error handler is called
This commit is contained in:
		
						commit
						8535ec0819
					
				| @ -690,7 +690,7 @@ func (p *ControllerRegister) ServeHTTP(rw http.ResponseWriter, r *http.Request) | |||||||
| 
 | 
 | ||||||
| 	// filter wrong http method | 	// filter wrong http method | ||||||
| 	if !HTTPMETHOD[r.Method] { | 	if !HTTPMETHOD[r.Method] { | ||||||
| 		http.Error(rw, "Method Not Allowed", http.StatusMethodNotAllowed) | 		exception("405", context) | ||||||
| 		goto Admin | 		goto Admin | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user