req.host

中英双语

在 Express 4 中,如果端口号存在,req.host 函数会错误地剥离端口号。在 Express 5 中,端口号保持不变。