mirror of
https://github.com/labstack/echo.git
synced 2024-12-24 20:14:31 +02:00
Fixed a typo
Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
parent
8a2f19fe7c
commit
064466bcde
2
echo.go
2
echo.go
@ -108,7 +108,7 @@ func New() (e *Echo) {
|
|||||||
e.HTTPErrorHandler(func(err error, c *Context) {
|
e.HTTPErrorHandler(func(err error, c *Context) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
// TODO: Warning
|
// TODO: Warning
|
||||||
log.Printf("echo: %s", color.Yellow("HTTP error handler not registered"))
|
log.Printf("echo: %s", color.Yellow("http error handler not registered"))
|
||||||
http.Error(c.Response, err.Error(), http.StatusInternalServerError)
|
http.Error(c.Response, err.Error(), http.StatusInternalServerError)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
@ -23,7 +23,7 @@ func (r *response) Header() http.Header {
|
|||||||
func (r *response) WriteHeader(n int) {
|
func (r *response) WriteHeader(n int) {
|
||||||
if r.committed {
|
if r.committed {
|
||||||
// TODO: Warning
|
// TODO: Warning
|
||||||
log.Printf("echo: %s", color.Yellow("echo: response already committed"))
|
log.Printf("echo: %s", color.Yellow("response already committed"))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
r.status = n
|
r.status = n
|
||||||
|
Loading…
Reference in New Issue
Block a user