Browse Source
			
			
			metrics: fix handler to not run the next route (#3769)
			
				Signed-off-by: Dave Henderson <dhenderson@gmail.com>
			
			
				master
			
			
		 
		
			
				
					
						 Dave Henderson
					
					5 years ago
						Dave Henderson
					
					5 years ago
					
						
							committed by
							
								 GitHub
								GitHub
							
						 
					
				 
				
			 
		 
		
			
				
					
					No known key found for this signature in database
					
						
							GPG Key ID: 4AEE18F83AFDEB23
						
					
				
			
		
		
		
	
		
			
				 1 changed files with 
1 additions and 
1 deletions
			 
			
		 
		
			
				- 
					
					
					 
					modules/metrics/metrics.go
				
				
				
					
						
							
								
									
	
		
			
				
					|  |  | @ -85,7 +85,7 @@ func (m *Metrics) UnmarshalCaddyfile(d *caddyfile.Dispenser) error { | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | func (m Metrics) ServeHTTP(w http.ResponseWriter, r *http.Request, next caddyhttp.Handler) error { | 
			
		
	
		
			
				
					|  |  |  | 	m.metricsHandler.ServeHTTP(w, r) | 
			
		
	
		
			
				
					|  |  |  | 	return next.ServeHTTP(w, r) | 
			
		
	
		
			
				
					|  |  |  | 	return nil | 
			
		
	
		
			
				
					|  |  |  | } | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | // Interface guards
 | 
			
		
	
	
		
			
				
					|  |  | 
 |