tom
未读,2012年1月31日 07:18:402012/1/31登录即可回复作者
登录即可转发
您无权在此群组中删除帖子
请登录以举报消息
要么此群组的电子邮件地址为匿名状态,要么您得查看成员电子邮件地址权限才能查看原始帖子
收件人 no...@googlegroups.com
when run https in default port(443), now.js could not serve file on 443. the fix below maybe helpful.
Index: node_modules/now/lib/fileServer.js
===================================================================
--- node_modules/now/lib/fileServer.js (revision 889)
+++ node_modules/now/lib/fileServer.js (working copy)
@@ -75,7 +75,7 @@
// Determine hostname / port if not given in options
var host = request.headers.host.split(':');
var hostServer = options['host'] || host[0];
- var hostPort = options['port'] || host[1] || '80';
+ var hostPort = options['port'] || host[1] || ((request.headers.referer.split(':')[0] === 'https') ? '443' : '80');
// Call generate client libs, which takes the desired host/port and executes callback with two parts of now.js as parameters
generateClientLibs(hostServer, hostPort, function (nowText) {
Best regards
Tom