Chore: Remove untyped data map from macaron context (#39077)

This commit is contained in:
Serge Zaitsev
2021-09-13 15:41:03 +02:00
committed by GitHub
parent 1c892a2fc4
commit e1e385b318
9 changed files with 44 additions and 48 deletions
@@ -58,11 +58,8 @@ func TestInitContextWithAuthProxy_CachedInvalidUserID(t *testing.T) {
req, err := http.NewRequest("POST", "http://example.com", nil)
require.NoError(t, err)
ctx := &models.ReqContext{
Context: &macaron.Context{
Req: req,
Data: map[string]interface{}{},
},
Logger: log.New("Test"),
Context: &macaron.Context{Req: req},
Logger: log.New("Test"),
}
req.Header.Set(svc.Cfg.AuthProxyHeaderName, name)
h, err := authproxy.HashCacheKey(name)