mirror of
				https://github.com/niusmallnan/steve.git
				synced 2025-11-04 02:58:55 +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()))
 | 
						|
}
 |