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

支持contextPath为空 #75

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Commits on Jan 21, 2021

  1. Configuration menu
    Copy the full SHA
    85b6c18 View commit details
    Browse the repository at this point in the history

Commits on Dec 29, 2021

  1. Configuration menu
    Copy the full SHA
    cecf3f4 View commit details
    Browse the repository at this point in the history

Commits on Dec 30, 2021

  1. fix: fix contextPath cannot be set to empty

    const configClient = new NacosConfigClient({
      serverAddr: '127.0.0.1:8848',
      contextPath: '',
    });
    在使用NacosConfigClient时指定了contextPath但还是不生效,通过跟踪代码,发现在调http_agent中如果contenxPath为空,会再设置一次默认值,在创建NacosConfigClient时已经处理过一次(如果contextPath不存在则使用默认值'nacos'),所以我的理解这一步应该不需要了,也要考虑有些服务端进行改造时把contextPath去掉的情况。
    netfoxor authored Dec 30, 2021
    Configuration menu
    Copy the full SHA
    5a10a56 View commit details
    Browse the repository at this point in the history