Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

ConfigCenterClient 中环境名没生效 #53

Closed
TimChen676 opened this issue Oct 29, 2020 · 0 comments
Closed

ConfigCenterClient 中环境名没生效 #53

TimChen676 opened this issue Oct 29, 2020 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@TimChen676
Copy link

[问题描述]

这行新建了headers的Map对象,放入了x-environment的key,和环境名的value,但在下一行请求的时候没有使用.

[建议修改]

HttpRequest httpRequest = new HttpRequest(addressManager.address() + "/configuration/items?dimensionsInfo="
          + HttpUtils.encodeURLParam(dimensionsInfo) + "&revision=" + request.getRevision(), null, null,
          HttpRequest.GET);

应该把这行的第二个参数null改成headers

@liubao68 liubao68 added the bug Something isn't working label Oct 31, 2020
liubao68 added a commit to liubao68/dubbo-servicecomb that referenced this issue Oct 31, 2020
liubao68 added a commit to liubao68/dubbo-servicecomb that referenced this issue Oct 31, 2020
liubao68 added a commit to liubao68/dubbo-servicecomb that referenced this issue Oct 31, 2020
liubao68 added a commit to liubao68/dubbo-servicecomb that referenced this issue Oct 31, 2020
liubao68 added a commit to liubao68/dubbo-servicecomb that referenced this issue Oct 31, 2020
liubao68 added a commit to liubao68/dubbo-servicecomb that referenced this issue Oct 31, 2020
liubao68 added a commit to liubao68/dubbo-servicecomb that referenced this issue Oct 31, 2020
@liubao68 liubao68 added this to the 2.0.1 milestone Nov 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants