dotfiles/.vscode/extensions/codezombiech.gitignore-0.2.0/node_modules/github/templates/after_request.js.tpl

12 lines
357 B
Smarty
Raw Normal View History

2016-09-24 12:12:34 +01:00
if (!ret)
ret = {};
if (typeof ret == "object") {
if (!ret.meta)
ret.meta = {};
[<%headers%>].forEach(function(header) {
if (res.headers[header])
ret.meta[header] = res.headers[header];
});
}