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

关于hostname主机名被转为小写的问题 #206

Open
Alleninggx opened this issue Aug 29, 2024 · 0 comments
Open

关于hostname主机名被转为小写的问题 #206

Alleninggx opened this issue Aug 29, 2024 · 0 comments

Comments

@Alleninggx
Copy link

Alleninggx commented Aug 29, 2024

image
这是我的一个client的BaseRequest定义,其中 #{baseUrl} 在配置文件中baseUrl=http://EXAMPLE,主机名对应的是 /etc/hosts的一个配置:127.0.0.1 EXAMPLE

实际上发出的请求却是http://example/xxxx,主机名被转小写了

由于我部署的环境是使用docker,容器内核是Alpine Linux(参考),不忽略大小写的,意思就是大小写敏感。

导致请求失败,主机名无法识别的错误。

请问有什么办法可以避免这个问题?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant