Skip to content

Commit

Permalink
Fixed getManifest crashing
Browse files Browse the repository at this point in the history
  • Loading branch information
DoctorMcKay committed Jan 30, 2019
1 parent a91d464 commit 5550916
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/cdn.js
Expand Up @@ -5,6 +5,7 @@ const FS = require('fs');
const LZMA = require('lzma');
const StdLib = require('@doctormckay/stdlib');
const SteamCrypto = require('@doctormckay/steam-crypto');
const VDF = require('vdf');

const Helpers = require('./helpers.js');
const ContentManifest = require('./content_manifest.js');
Expand Down Expand Up @@ -41,8 +42,9 @@ SteamUser.prototype.getContentServers = function(callback) {
return;
}

let parsed;
try {
let parsed = require('vdf').parse(res.data.toString('utf8'));
parsed = VDF.parse(res.data.toString('utf8'));
} catch (ex) {
return reject(new Error("Malformed response"));
}
Expand Down

0 comments on commit 5550916

Please sign in to comment.