rename setType -> getType
sounds weird
This commit is contained in:
parent
163e59c0d5
commit
952dca336d
1 changed files with 2 additions and 2 deletions
|
@ -6,7 +6,7 @@
|
||||||
var ensureErrorHandler = require('error-inject');
|
var ensureErrorHandler = require('error-inject');
|
||||||
var escape = require('escape-html');
|
var escape = require('escape-html');
|
||||||
var onfinish = require('finished');
|
var onfinish = require('finished');
|
||||||
var setType = require('set-type');
|
var getType = require('set-type');
|
||||||
var status = require('statuses');
|
var status = require('statuses');
|
||||||
var destroy = require('dethroy');
|
var destroy = require('dethroy');
|
||||||
var http = require('http');
|
var http = require('http');
|
||||||
|
@ -264,7 +264,7 @@ module.exports = {
|
||||||
*/
|
*/
|
||||||
|
|
||||||
set type(type) {
|
set type(type) {
|
||||||
this.set('Content-Type', setType(type));
|
this.set('Content-Type', getType(type));
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue