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

fix: don't use path.join on windows #11

Merged
merged 2 commits into from
Aug 7, 2017
Merged

Conversation

fengmk2
Copy link
Member

@fengmk2 fengmk2 commented Aug 7, 2017

No description provided.

options.loginPath = path.join(options.rootPath, options.loginPath);
options.logoutPath = path.join(options.rootPath, options.logoutPath);
options.loginCallbackPath = path.join(options.rootPath, options.loginCallbackPath);
if (process.platform === 'win32') {
Copy link
Member Author

Choose a reason for hiding this comment

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

只修复 windows 常见的配置情况,特殊配置不考虑了。

Copy link
Member

Choose a reason for hiding this comment

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

直接都用 path.posix.join ?

Copy link
Member Author

Choose a reason for hiding this comment

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

不要了,还是先简单解决,posix 下在 windows 万一效果错误呢?

@fengmk2 fengmk2 merged commit 58d62fd into master Aug 7, 2017
@fengmk2 fengmk2 deleted the fix-pathjoin-windows branch August 7, 2017 02:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants