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

建议:所有路径拼装都使用path.join #3

Closed
dongyuwei opened this issue Jul 12, 2012 · 1 comment
Closed

建议:所有路径拼装都使用path.join #3

dongyuwei opened this issue Jul 12, 2012 · 1 comment

Comments

@dongyuwei
Copy link

var url = config.IO_HOST + '/put-auth/' + expires + '/callback/' + util.encode(callbackUrl);
改成

//var path = require('path');
var url = path.join( config.IO_HOST , '/put-auth/' , expires , '/callback/' , util.encode(callbackUrl));

可以跨平台

@xushiwei
Copy link
Contributor

这个,这里是拼装url,不是拼装path。

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

2 participants