diff --git a/route/v2.go b/route/v2.go index 8d346c6..00832a8 100644 --- a/route/v2.go +++ b/route/v2.go @@ -79,7 +79,10 @@ func InitV2Router() http.Handler { }, TokenLookupFuncs: []echo_middleware.ValuesExtractor{ func(c echo.Context) ([]string, error) { - return []string{c.Request().Header.Get(echo.HeaderAuthorization)}, nil + if len(c.Request().Header.Get(echo.HeaderAuthorization)) > 0 { + return []string{c.Request().Header.Get(echo.HeaderAuthorization)}, nil + } + return []string{c.QueryParam("token")}, nil }, }, }))