rename setType -> getType

sounds weird
This commit is contained in:
TJ Holowaychuk 2014-04-28 20:12:53 -07:00
parent 163e59c0d5
commit 952dca336d

View file

@ -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));
}, },
/** /**