Skip to content

Commit

Permalink
deps: iconv-lite@0.4.10
Browse files Browse the repository at this point in the history
  • Loading branch information
dougwilson committed May 28, 2015
1 parent 9dfaded commit b6d7732
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
unreleased
==========

* deps: iconv-lite@0.4.10
- The encoding UTF-16 without BOM now defaults to UTF-16LE when detection fails
- Leading BOM is now removed when decoding

2.0.2 / 2015-05-21
==================

Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function getDecoder(encoding) {
if (!encoding) return null

try {
return iconv.getCodec(encoding).decoder()
return iconv.getDecoder(encoding)
} catch (e) {
var err = makeError('specified encoding unsupported', 'encoding.unsupported')
err.status = err.statusCode = 415
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"repository": "stream-utils/raw-body",
"dependencies": {
"bytes": "2.1.0",
"iconv-lite": "0.4.8"
"iconv-lite": "0.4.10"
},
"devDependencies": {
"bluebird": "2.9.26",
Expand Down

0 comments on commit b6d7732

Please sign in to comment.