Escape \b for the regex

This commit is contained in:
Raul Ochoa
2015-01-23 17:22:49 +01:00
parent 0abd6a2293
commit fabb438cf0
+1 -1
View File
@@ -17,7 +17,7 @@ VarnishHttpCacheBackend.prototype.invalidate = function(cacheObject, callback) {
method: 'PURGE',
url: 'http://' + this.host + ':' + this.port + '/key',
headers: {
'Invalidation-Match': '\b' + cacheObject.key() + '\b'
'Invalidation-Match': '\\b' + cacheObject.key() + '\\b'
}
},
function(err, response) {