mirror of
				https://github.com/rancher/steve.git
				synced 2025-11-03 23:21:04 +00:00 
			
		
		
		
	
		
			
	
	
		
			16 lines
		
	
	
		
			264 B
		
	
	
	
		
			Go
		
	
	
	
	
	
		
		
			
		
	
	
			16 lines
		
	
	
		
			264 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| 
								 | 
							
								package proxy
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								import "net/http"
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								var (
							 | 
						||
| 
								 | 
							
									er = &errorResponder{}
							 | 
						||
| 
								 | 
							
								)
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								type errorResponder struct {
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								func (e *errorResponder) Error(w http.ResponseWriter, req *http.Request, err error) {
							 | 
						||
| 
								 | 
							
									w.WriteHeader(http.StatusInternalServerError)
							 | 
						||
| 
								 | 
							
									w.Write([]byte(err.Error()))
							 | 
						||
| 
								 | 
							
								}
							 |