Closed behrangsa closed 10 years ago
For me it works:
{ headers:
{ 'user-agent': 'curl/7.30.0',
host: 'localhost:8080',
accept: 'application/json',
'content-type': 'application/json',
httpVersion: '1.1',
method: 'GET',
originalUrl: '/api/event-log.csv?d=13',
clientAddress: '127.0.0.1' },
parameters: { d: '13' },
params: { d: '13' },
files: undefined,
session:
{ cookie:
{ path: '/',
_expires: null,
originalMaxAge: null,
httpOnly: false } } }
Maybe you are not using the connect layer properly. Connect does not care about request parameters directly, but connect middle wares do:
.use( connect.query() )
.use( connect.cookieParser() )
...
.use( connect.urlencoded() )
.use( connect.json() )
Please, check your connect set-up.
When a request comes to
/api/event-log.csv?d=13&m=1&y=2014
,parameters
andparams
remain empty:Here's the code that's causing this: