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

fix pprof redirect path #1330

Merged
merged 4 commits into from
May 19, 2021
Merged

fix pprof redirect path #1330

merged 4 commits into from
May 19, 2021

Conversation

bestgopher
Copy link
Contributor

I think the redirected path can be optimized.
For example, if the path is /debug/pprof/block/, it better to redirect to /debug/pprof/block instead of /debug/pprof.

@bestgopher
Copy link
Contributor Author

/test

middleware/pprof/pprof.go Outdated Show resolved Hide resolved
utils/bytes.go Outdated Show resolved Hide resolved
@ReneWerner87 ReneWerner87 merged commit 2f05108 into gofiber:master May 19, 2021
@ReneWerner87 ReneWerner87 linked an issue Jun 3, 2021 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🐛 pprof middleware redirect index page to wrong url
4 participants