bruce-models 1.4.8 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -470,11 +470,14 @@
470
470
  encoding = charset.split("=")[1];
471
471
  encoding = encoding.toLowerCase();
472
472
  }
473
+ if (!encoding) {
474
+ return null;
475
+ }
473
476
  // Our API has a very specific utf-16 encoding.
474
477
  if (encoding == "utf-16") {
475
478
  encoding = exports.Api.EEncoding.UTF16;
476
479
  }
477
- if (!encoding || encoding == "utf-8") {
480
+ if (encoding == "utf-8") {
478
481
  return data.json();
479
482
  }
480
483
  else {