@eo-sdk/client 7.14.0 → 7.14.1

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.
@@ -1238,7 +1238,8 @@
1238
1238
  };
1239
1239
  BackendService.prototype.getFileNameFromHttpResponse = function (res, version) {
1240
1240
  var contentDispositionHeader = res.headers.get('Content-Disposition') || '';
1241
- var encodedFileNameMatchResult = contentDispositionHeader.match('filename\\*=UTF-8\'\'(.*)');
1241
+ var encodedFileNameMatchResult = contentDispositionHeader.match('filename\\*=UTF-8\'\'(.*)')
1242
+ || contentDispositionHeader.match('filename=\"(.*)\"');
1242
1243
  var encodedFileName = encodedFileNameMatchResult ? encodedFileNameMatchResult[1] : null;
1243
1244
  var filename = encodedFileName ? decodeURIComponent(encodedFileName) : 'unknown';
1244
1245
  var index = !~filename.lastIndexOf('.') ? filename.length : filename.lastIndexOf('.');