Allow encoding override by parameter (1.0.49)

This commit is contained in:
mmorrison 2019-01-06 17:55:12 -06:00
parent 8b3126e430
commit 68ee06ef11
2 changed files with 2 additions and 2 deletions

View file

@ -43,7 +43,7 @@ class Reader {
else options = args[0];
}
options.encoding = options.encoding || this.query.encoding;
options.encoding = options.encoding || this.query.options.encoding || this.query.encoding;
if(options.encoding === 'latin1') options.encoding = 'win1252';
const start = this.i+0;

View file

@ -11,7 +11,7 @@
],
"main": "lib/index.js",
"author": "Michael Morrison",
"version": "1.0.48",
"version": "1.0.49",
"repository": {
"type": "git",
"url": "https://github.com/sonicsnes/node-gamedig.git"