Remove CSRF check for Git HTTP packs (#408)

This commit is contained in:
Thomas Miceli
2025-01-20 03:18:28 +01:00
committed by GitHub
parent a752e0561d
commit 662f553d37
2 changed files with 14 additions and 2 deletions

View File

@ -28,11 +28,14 @@ type Context struct {
}
func NewContext(c echo.Context, sessionPath string) *Context {
return &Context{
ctx := &Context{
Context: c,
data: make(echo.Map),
store: NewStore(sessionPath),
}
ctx.SetRequest(ctx.Request().WithContext(context.WithValue(ctx.Request().Context(), DataKeyStr, ctx.data)))
return ctx
}
func (ctx *Context) SetData(key string, value any) {