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

Why is the pattern parameter reported by httpserver.go always "/" #156

Closed
mike1qaz opened this issue Dec 5, 2019 · 5 comments
Closed

Why is the pattern parameter reported by httpserver.go always "/" #156

mike1qaz opened this issue Dec 5, 2019 · 5 comments

Comments

@mike1qaz
Copy link

mike1qaz commented Dec 5, 2019

should url.path be reported?

@maplebeats
Copy link
Collaborator

maplebeats commented Dec 12, 2019

Pattern is taken from handler first. If can't be got, it will be reported as "/"

@mike1qaz
Copy link
Author

mike1qaz commented Dec 12, 2019

The incoming handler is url.path, but it is empty when it comes out of the handler.

@maplebeats
Copy link
Collaborator

maplebeats commented Dec 12, 2019

Raise a pr to fix it then:D

@sandyskies sandyskies changed the title httpserver.go 上报的 pattern 参数为什么总是“/” Why is the pattern parameter reported by httpserver.go always "/" Jan 21, 2020
@wwlwwww
Copy link

wwlwwww commented Apr 13, 2020

Using url.path, if someone attack or scan the server, there will be lots of different path reported. Not sure if it is ok for the monitor.

@tarscloudbot
Copy link
Contributor

该issue长期未更新。如果问题依旧没解决,欢迎重新打开issue。TARS社区有您更精彩。

Thanks for your supporting. The issue has not been updated for a long time. If the problem is still not resolved, welcome to reopen the issue.

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

4 participants