-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
[Improvement] Ensure that HttpUtils can only get result from certification URL #15288
Conversation
Contribute.md
# Conflicts: # CONTRIBUTING.md
please run |
|
||
@Test | ||
void testGetRequest() { | ||
// test HTTP URL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be better if there exist an incorrect url case?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
has updated, please help check |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## dev #15288 +/- ##
============================================
- Coverage 37.81% 37.80% -0.01%
- Complexity 4701 4704 +3
============================================
Files 1304 1304
Lines 45216 45205 -11
Branches 4858 4856 -2
============================================
- Hits 17099 17092 -7
+ Misses 26254 26251 -3
+ Partials 1863 1862 -1 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Others LGTM
|
||
@Test | ||
void testGetRequest() { | ||
// test HTTP URL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@zhongjiajie updated, please take a look! |
|
Ensure that HttpUtils can only access secure URL