Skip to content

Commit

Permalink
fix: adapt for mime@2
Browse files Browse the repository at this point in the history
mime.lookup() is now mime.getType()
  • Loading branch information
gr2m committed Oct 25, 2017
1 parent c961627 commit fb0ad88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.js
Expand Up @@ -848,7 +848,7 @@ var Client = module.exports = function (config) {
callCallback(err)
} else {
headers['content-length'] = stat.size
headers['content-type'] = mime.lookup(msg.name)
headers['content-type'] = mime.getType(msg.name)
httpSendRequest()
}
})
Expand Down

0 comments on commit fb0ad88

Please sign in to comment.