Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
setType(type: string) {
const _type = getType(type);
if (_type) {
this.setHeader('Content-Type', _type);
}
return this;
}