diff --git a/ginext/preContext.go b/ginext/preContext.go index c6b401a..80a2a91 100644 --- a/ginext/preContext.go +++ b/ginext/preContext.go @@ -116,7 +116,7 @@ func (pctx PreContext) Start() (*AppContext, *gin.Context, *HTTPResponse) { } if pctx.header != nil { - if err := pctx.ginCtx.ShouldBindHeader(pctx.query); err != nil { + if err := pctx.ginCtx.ShouldBindHeader(pctx.header); err != nil { err = exerr.Wrap(err, "Failed to read header"). WithType(exerr.TypeBindFailHeader). Str("struct_type", fmt.Sprintf("%T", pctx.query)). diff --git a/goextVersion.go b/goextVersion.go index 00b78ad..dbeb45e 100644 --- a/goextVersion.go +++ b/goextVersion.go @@ -1,5 +1,5 @@ package goext -const GoextVersion = "0.0.255" +const GoextVersion = "0.0.256" -const GoextVersionTimestamp = "2023-08-24T09:47:32+0200" +const GoextVersionTimestamp = "2023-08-28T10:44:38+0200"