【发布时间】:2017-02-13 23:33:40
【问题描述】:
我正在使用 Restify 并且由于某种原因 req.url 只显示 URL,直到第一个查询参数。 req.query 也只显示 queryStartDate。
http://localhost:6001/myapp/v1/filter/path1/path2/v4.0/mhs/query/path3/path4/path5?queryStartDate=19000101&queryEndDate=21000101&requestSource=source&includeSources=1&excludeSources=2
代码:
//Breakpoint in my first handler:
HttpHandlers.prototype.readHttpRequest = function (req, res, next) {
req.locals = {};
res.locals = {};
...
var httpHandlers = new HttpHandlers();
server.get('/hello/:name', httpHandlers.readHttpRequest );
【问题讨论】:
-
你是怎么做到的。隐藏代码?
-
@UnknownDeveloper,我刚刚更新了我的问题。
-
您的 /hello/:name 网址在哪里? @user994165