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

monitoring param host with http head will not be error reported #1155

Merged
merged 8 commits into from
Aug 8, 2023

Conversation

littlezhongzer
Copy link
Contributor

What's changed?

feature:enter the domain name in host, including http://or https://, and there will be no error reported

Checklist

  • I have read the Contributing Guide
  • I have written the necessary doc or comment.
  • I have added the necessary unit tests and all cases have passed.

@tomsun28 tomsun28 added enhancement New feature or request good first pull request Good for newcomers labels Aug 5, 2023
@tomsun28
Copy link
Contributor

tomsun28 commented Aug 5, 2023

👍👍 hi we need to consider this situation https://hertzbeat.com/, there is a / character at the end

@tomsun28
Copy link
Contributor

tomsun28 commented Aug 8, 2023

hi, there has code pmd error, please fix it

[INFO] PMD Failure: org.dromara.hertzbeat.common.support.valid.HostParamValidator:35 Rule:UndefineMagicConstantRule Priority:3 魔法值【"http://"】.
[INFO] PMD Failure: org.dromara.hertzbeat.common.support.valid.HostParamValidator:38 Rule:UndefineMagicConstantRule Priority:3 魔法值【"https://"】.

@tomsun28 tomsun28 changed the title Loyal dev monitoring param host with http head will not be error reported Aug 8, 2023
@littlezhongzer littlezhongzer deleted the loyal_dev branch August 8, 2023 09:21
@littlezhongzer littlezhongzer restored the loyal_dev branch August 8, 2023 09:36
@littlezhongzer littlezhongzer reopened this Aug 8, 2023
Copy link
Contributor

@tomsun28 tomsun28 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM👍👍

Signed-off-by: tomsun28 <tomsun28@outlook.com>
…d/HostValid.java

Signed-off-by: tomsun28 <tomsun28@outlook.com>
Signed-off-by: tomsun28 <tomsun28@outlook.com>
@tomsun28 tomsun28 merged commit 6fb84f0 into apache:master Aug 8, 2023
2 checks passed
tomsun28 pushed a commit that referenced this pull request Jan 16, 2024
Co-authored-by: zhongcheng <zhongcheng@winning.com.cn>
tomsun28 pushed a commit that referenced this pull request Mar 9, 2024
Co-authored-by: zhongcheng <zhongcheng@winning.com.cn>
tomsun28 pushed a commit that referenced this pull request Mar 9, 2024
Co-authored-by: zhongcheng <zhongcheng@winning.com.cn>
tomsun28 pushed a commit that referenced this pull request Mar 10, 2024
Co-authored-by: zhongcheng <zhongcheng@winning.com.cn>
tomsun28 pushed a commit that referenced this pull request Mar 10, 2024
Co-authored-by: zhongcheng <zhongcheng@winning.com.cn>
tomsun28 pushed a commit that referenced this pull request Mar 11, 2024
Co-authored-by: zhongcheng <zhongcheng@winning.com.cn>
tomsun28 pushed a commit that referenced this pull request Mar 11, 2024
Co-authored-by: zhongcheng <zhongcheng@winning.com.cn>
tomsun28 pushed a commit that referenced this pull request Mar 11, 2024
Co-authored-by: zhongcheng <zhongcheng@winning.com.cn>
tomsun28 pushed a commit that referenced this pull request Mar 11, 2024
Co-authored-by: zhongcheng <zhongcheng@winning.com.cn>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first pull request Good for newcomers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants