mirror of
https://github.com/rancher/steve.git
synced 2025-04-30 04:03:46 +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()))
|
||
|
}
|