mirror of
https://github.com/labstack/echo.git
synced 2025-12-03 22:59:09 +02:00
@@ -11,9 +11,10 @@ import (
|
||||
)
|
||||
|
||||
func TestBasicAuth(t *testing.T) {
|
||||
e := echo.New()
|
||||
req, _ := http.NewRequest(echo.GET, "/", nil)
|
||||
rec := httptest.NewRecorder()
|
||||
c := echo.NewContext(req, echo.NewResponse(rec), echo.New())
|
||||
c := echo.NewContext(req, echo.NewResponse(rec, e), e)
|
||||
fn := func(u, p string) bool {
|
||||
if u == "joe" && p == "secret" {
|
||||
return true
|
||||
|
||||
Reference in New Issue
Block a user