response.etag: remove getter for now

until we figure out a good way to return both weak and strong validators
This commit is contained in:
Jonathan Ong 2013-11-13 21:04:40 -08:00
parent 12dda03b83
commit e51e85e0fc
2 changed files with 0 additions and 17 deletions

View File

@ -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".

View File

@ -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"');
})
})