Account for undefined argument.
This commit is contained in:
parent
96ee77d85b
commit
24a26953a7
|
@ -87,7 +87,7 @@ CachingMiddleware.prototype = new function () {
|
||||||
// Update cache
|
// Update cache
|
||||||
var buffer = '';
|
var buffer = '';
|
||||||
|
|
||||||
Object.keys(headers).forEach(function (key) {
|
Object.keys(headers || {}).forEach(function (key) {
|
||||||
res.setHeader(key, headers[key]);
|
res.setHeader(key, headers[key]);
|
||||||
});
|
});
|
||||||
headers = _headers;
|
headers = _headers;
|
||||||
|
|
Loading…
Reference in New Issue