Skip to content

Conversation

@leiwan5
Copy link

@leiwan5 leiwan5 commented Feb 16, 2013

应用在使用https时有点问题,自己定义homeUrl虽然可以解决问题但不爽,:)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

req.headers.scheme? 如果 schme 为空,是否默认 http 呢?

@leiwan5
Copy link
Author

leiwan5 commented Feb 16, 2013

那就

options.homeUrl = (req.socket.headers.scheme || 'http') + '://' + req.headers.host;

这个会没有吗?

@fengmk2
Copy link
Member

fengmk2 commented Feb 16, 2013

@Danielking ok

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

Successfully merging this pull request may close these issues.

2 participants