Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
efectn committed Aug 30, 2024
1 parent 3bb9df5 commit e7545b2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 14 deletions.
6 changes: 0 additions & 6 deletions binder.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,6 @@ type Bind struct {
strict bool
}

func (c *DefaultCtx) Bind() *Bind {
b := binderPool.Get().(*Bind)
b.ctx = c
return b
}

func (b *Bind) Strict() *Bind {
b.strict = true
return b

Check warning on line 26 in binder.go

View check run for this annotation

Codecov / codecov/patch

binder.go#L24-L26

Added lines #L24 - L26 were not covered by tests
Expand Down
12 changes: 6 additions & 6 deletions ctx_interface_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions middleware/logger/tags.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ func createTagMap(cfg *Config) map[string]LogFunc {
return output.Write(c.Response().Body())
},
TagReqHeaders: func(output Buffer, c fiber.Ctx, _ *Data, _ string) (int, error) {
out := c.GetRespHeaders()
fmt.Print(out)
out := c.GetReqHeaders()
reqHeaders := make([]string, 0)

for k, v := range out {
reqHeaders = append(reqHeaders, k+"="+strings.Join(v, ","))
}
Expand Down

0 comments on commit e7545b2

Please sign in to comment.