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: redirect /debug/pprof to avoid jumping to a blank page in httpd and meta service #45

Merged
merged 4 commits into from
Sep 29, 2024

Conversation

4zore4
Copy link

@4zore4 4zore4 commented Sep 28, 2024

Which Issue(s) This PR Fixes
Fixes:修复打开/debug/pprof后,点击allocs, block, cmdline,goroutine, heap, mutex,profile, threadcreate,trace等超链接跳转出现404的bug

Brief Description
通过url重定向的方式,将/debug/pprof重定向至/debug/pprof/,避免浏览器在计算url路径时将pprof删除,导致url路径错误

  • [*] Tests pass
    测试已通过

To fix the bug where users opening /debug/pprof are redirected to an empty link,
@chengshiwen chengshiwen changed the title bugfix:Add a redirect form /debug/pprof to /debug/pprof/ fix(httpd): add a redirect form /debug/pprof to /debug/pprof/ Sep 29, 2024
@chengshiwen chengshiwen changed the base branch from master to dev September 29, 2024 06:17
@chengshiwen chengshiwen changed the title fix(httpd): add a redirect form /debug/pprof to /debug/pprof/ fix: redirect /debug/pprof to avoid jumping to a blank page in httpd and meta service Sep 29, 2024
@chengshiwen chengshiwen merged commit 411d156 into chengshiwen:dev Sep 29, 2024
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants