-
Notifications
You must be signed in to change notification settings - Fork 641
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
[ISSUE #4723] Fix get meta from nacos return 403 #4724
Conversation
@@ -315,6 +315,8 @@ private Map<String, String> getResultFromNacos(int pageNo, int pageSize, String | |||
} | |||
URI uri = uriBuilder.build(); | |||
HttpGet httpGet = new HttpGet(uri); | |||
httpGet.setHeader("username",username); | |||
httpGet.setHeader("password",password); |
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.
Can NacosConstant.USERNAME
and NacosConstant.PASSWORD
be used to replace them?
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.
of course
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #4724 +/- ##
============================================
- Coverage 17.44% 17.44% -0.01%
Complexity 1768 1768
============================================
Files 797 797
Lines 29845 29847 +2
Branches 2563 2563
============================================
Hits 5206 5206
- Misses 24159 24161 +2
Partials 480 480 ☔ 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.
LGTM
Fixes #4723.
Motivation
Explain the content here.
Explain why you want to make the changes and what problem you're trying to solve.
Modifications
Describe the modifications you've done.
Documentation