From e51e85e0fcc8765aa9753cd1e73cc05a7725ca05 Mon Sep 17 00:00:00 2001 From: Jonathan Ong Date: Wed, 13 Nov 2013 21:04:40 -0800 Subject: [PATCH] response.etag: remove getter for now until we figure out a good way to return both weak and strong validators --- lib/response.js | 11 ----------- test/response/etag.js | 6 ------ 2 files changed, 17 deletions(-) diff --git a/lib/response.js b/lib/response.js index 8384ccf..41edc22 100644 --- a/lib/response.js +++ b/lib/response.js @@ -339,17 +339,6 @@ Response.prototype = { this.set('ETag', val); }, - /** - * Get the ETag of a response. - * - * @return {String} - * @api public - */ - - get etag() { - return this.get('etag'); - }, - /** * Return the request mime type void of * parameters such as "charset". diff --git a/test/response/etag.js b/test/response/etag.js index b01fcf7..016b5c5 100644 --- a/test/response/etag.js +++ b/test/response/etag.js @@ -19,10 +19,4 @@ describe('res.etag', function(){ res.etag = 'asdf'; res.header.etag.should.equal('"asdf"'); }) - - it('should get the etag', function(){ - var res = response(); - res.set('etag', '"asdf"'); - res.etag.should.equal('"asdf"'); - }) }) \ No newline at end of file