1
0
mirror of https://github.com/labstack/echo.git synced 2025-11-29 22:48:07 +02:00

Added test for secure middleware

Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
Vishal Rana
2016-05-03 08:32:28 -07:00
parent 392028c8af
commit 6424d779dc
6 changed files with 130 additions and 63 deletions

View File

@@ -14,7 +14,7 @@ func TestMethodOverride(t *testing.T) {
e := echo.New()
m := MethodOverride()
h := func(c echo.Context) error {
return c.String(http.StatusOK, "Okay")
return c.String(http.StatusOK, "test")
}
// Override with http header