Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose bodyHiddenFields on the middleware #9

Open
swagftw opened this issue Apr 19, 2024 · 0 comments
Open

Expose bodyHiddenFields on the middleware #9

swagftw opened this issue Apr 19, 2024 · 0 comments

Comments

@swagftw
Copy link

swagftw commented Apr 19, 2024

Current behavior:

  • Middleware handler does not accept hidden fields from user, which makes the handler to print sensitive fields

Expected behavior

  • Accept bodyHiddenFields slice of string on the handler which can be used to remove sensitive fields
DumpWithOptions(hideFields []string,showReq bool, showResp bool, showBody bool, showHeaders bool, showCookies bool, cb func(dumpStr string)) gin.HandlerFunc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant