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:
parent
12dda03b83
commit
e51e85e0fc
2 changed files with 0 additions and 17 deletions
|
@ -339,17 +339,6 @@ Response.prototype = {
|
||||||
this.set('ETag', val);
|
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
|
* Return the request mime type void of
|
||||||
* parameters such as "charset".
|
* parameters such as "charset".
|
||||||
|
|
|
@ -19,10 +19,4 @@ describe('res.etag', function(){
|
||||||
res.etag = 'asdf';
|
res.etag = 'asdf';
|
||||||
res.header.etag.should.equal('"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"');
|
|
||||||
})
|
|
||||||
})
|
})
|
Loading…
Reference in a new issue