Set headers with set method
This commit is contained in:
+2
-2
@@ -17,8 +17,8 @@ module.exports = SurrogateKeysCache;
|
||||
*/
|
||||
SurrogateKeysCache.prototype.tag = function(response, cacheObject) {
|
||||
var newKey = cacheObject.key();
|
||||
response.header('Surrogate-Key', appendSurrogateKey(
|
||||
response.header('Surrogate-Key'),
|
||||
response.set('Surrogate-Key', appendSurrogateKey(
|
||||
response.get('Surrogate-Key'),
|
||||
Array.isArray(newKey) ? cacheObject.key().join(' ') : newKey
|
||||
));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user