refactor with ctx.query

just a little thing i noticed
Merge pull request #1 from visionmedia/patch-1

refactor with ctx.query