mirror of
https://github.com/labstack/echo.git
synced 2024-11-24 08:22:21 +02:00
Two little typos on comments (#835)
This commit is contained in:
parent
c7c4395fbd
commit
a8b6864be3
@ -34,7 +34,7 @@ func TestMethodOverride(t *testing.T) {
|
|||||||
m(h)(c)
|
m(h)(c)
|
||||||
assert.Equal(t, echo.DELETE, req.Method)
|
assert.Equal(t, echo.DELETE, req.Method)
|
||||||
|
|
||||||
// Override with query paramter
|
// Override with query parameter
|
||||||
m = MethodOverrideWithConfig(MethodOverrideConfig{Getter: MethodFromQuery("_method")})
|
m = MethodOverrideWithConfig(MethodOverrideConfig{Getter: MethodFromQuery("_method")})
|
||||||
req, _ = http.NewRequest(echo.POST, "/?_method="+echo.DELETE, nil)
|
req, _ = http.NewRequest(echo.POST, "/?_method="+echo.DELETE, nil)
|
||||||
rec = httptest.NewRecorder()
|
rec = httptest.NewRecorder()
|
||||||
|
@ -288,7 +288,7 @@ func (n *node) checkMethodNotAllowed() HandlerFunc {
|
|||||||
return NotFoundHandler
|
return NotFoundHandler
|
||||||
}
|
}
|
||||||
|
|
||||||
// Find lookup a handler registed for method and path. It also parses URL for path
|
// Find lookup a handler registered for method and path. It also parses URL for path
|
||||||
// parameters and load them into context.
|
// parameters and load them into context.
|
||||||
//
|
//
|
||||||
// For performance:
|
// For performance:
|
||||||
|
Loading…
Reference in New Issue
Block a user