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

优化“Latke 配置错误”问题 #58

Closed
88250 opened this issue Feb 4, 2020 · 0 comments
Closed

优化“Latke 配置错误”问题 #58

88250 opened this issue Feb 4, 2020 · 0 comments
Assignees
Milestone

Comments

@88250
Copy link
Owner

88250 commented Feb 4, 2020

这个问题是令人沮丧的

产生的主要原因是最终访问(浏览器打开)时候的地址和配置的地址不一致。为了减少这个问题给用户带来困扰,将尝试从 HTTP 标头中解析并设置地址参数:

  • scheme
  • host
  • port

使用线程本地变量 ThreadLocal 来进行维护,Latke 会优先从线程本地变量中获取并设置对应的 serverSchemeserverHostserverPort

@88250 88250 self-assigned this Feb 4, 2020
@88250 88250 added this to the 4.0.0 milestone Feb 4, 2020
@88250 88250 closed this as completed in 047da6e Feb 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant