diff --git a/lib/response.js b/lib/response.js index 1dbe4c9..ae22a84 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