Fetching contributors…
Cannot retrieve contributors at this time
14 lines (11 sloc) 365 Bytes
module.exports = (Mf) ->
cookieKiller = (req, res, next) ->
res.removeHeader("set-cookie")
next()
replacement = (string, req, res) ->
contentType = res.headers['content-type'] || ''
if contentType.search(/html/) >= 0
string.replace(/repositories/ig, "suppositories")
else
false
return [cookieKiller, Mf.replace(replacement)]