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.
@@ -476,11 +476,14 @@ function parseResult(data) {
476
476
  encoding = charset.split("=")[1];
477
477
  encoding = encoding.toLowerCase();
478
478
  }
479
+ if (!encoding) {
480
+ return null;
481
+ }
479
482
  // Our API has a very specific utf-16 encoding.
480
483
  if (encoding == "utf-16") {
481
484
  encoding = Api.EEncoding.UTF16;
482
485
  }
483
- if (!encoding || encoding == "utf-8") {
486
+ if (encoding == "utf-8") {
484
487
  return data.json();
485
488
  }
486
489
  else {