From 5a765895ca32cde3cc6da635c7aeb78f72134817 Mon Sep 17 00:00:00 2001 From: Bret Little Date: Sun, 17 Feb 2013 13:32:43 -0700 Subject: [PATCH] Udate the restify definition so that the request attributes path and href are functions rather than string properties. --- restify/restify-test.ts | 4 ++-- restify/restify.d.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/restify/restify-test.ts b/restify/restify-test.ts index 964a428b5..f54882965 100644 --- a/restify/restify-test.ts +++ b/restify/restify-test.ts @@ -49,9 +49,9 @@ function send(req, res, next) { req.contentLength === 50; req.contentType === 'test'; - req.href === 'test'; + req.href() === 'test'; req.id === 'test'; - req.path === 'test'; + req.path() === 'test'; req.query === 'test'; req.secure === true; req.time === 50; diff --git a/restify/restify.d.ts b/restify/restify.d.ts index 9d5edd93d..6b85260ba 100644 --- a/restify/restify.d.ts +++ b/restify/restify.d.ts @@ -11,10 +11,10 @@ interface Request { getLogger: (component: string) => any; contentLength: number; contentType: string; - href: string; + href: () => string; log: Object; id: string; - path: string; + path: () => string; query: string; secure: bool; time: number;