1
0
mirror of https://github.com/labstack/echo.git synced 2025-03-21 21:27:04 +02:00

#407, just fixed fasthttp response writer

Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
Vishal Rana 2016-03-15 15:55:46 -07:00
parent dfaaff949b
commit 030a9a4ad1
4 changed files with 4 additions and 4 deletions

View File

@ -182,7 +182,7 @@ func (c *context) Get(key string) interface{} {
return c.store[key]
}
// Bind binds the request body into specified type `i`. The default binder does
// Bind binds the request body into provided type `i`. The default binder does
// it based on Content-Type header.
func (c *context) Bind(i interface{}) error {
return c.echo.binder.Bind(i, c)

View File

@ -42,7 +42,7 @@ func (r *Response) WriteHeader(code int) {
// Write implements `engine.Response#Write` method.
func (r *Response) Write(b []byte) (int, error) {
return r.RequestCtx.Write(b)
return r.writer.Write(b)
}
// Status implements `engine.Response#Status` method.

View File

@ -29,7 +29,7 @@ type (
}
)
// New returns an instance of `fasthttp.Server` with specified listen address.
// New returns an instance of `fasthttp.Server` with provided listen address.
func New(addr string) *Server {
c := engine.Config{Address: addr}
return NewFromConfig(c)

View File

@ -27,7 +27,7 @@ type (
}
)
// New returns an instance of `standard.Server` with specified listen address.
// New returns an instance of `standard.Server` with provided listen address.
func New(addr string) *Server {
c := engine.Config{Address: addr}
return NewFromConfig(c)