res.type=: remove no-op code (#980)

This commit is contained in:
ziyunfei 2017-05-06 01:27:11 +08:00 committed by jongleberry
parent 9248660efd
commit 13c7ca6139

View file

@ -305,7 +305,7 @@ module.exports = {
*/
set type(type) {
type = getType(type) || false;
type = getType(type);
if (type) {
this.set('Content-Type', type);
} else {