nuxeo-development-framework 5.9.3 → 5.9.4

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.
@@ -1097,6 +1097,7 @@
1097
1097
  headers: options.headers,
1098
1098
  body: options.body,
1099
1099
  signal: options.signal,
1100
+ redirect: 'manual'
1100
1101
  };
1101
1102
  if (opts.credentials) {
1102
1103
  fetchOptions.credentials = opts.credentials;
@@ -1107,7 +1108,7 @@
1107
1108
  doFetch$1(options.url, fetchOptions)
1108
1109
  .then(function (res) {
1109
1110
  _this._activeRequests -= 1;
1110
- if (res.status === 401 && !opts.refreshedAuthentication) {
1111
+ if (res.status === 302 || (res.status === 401 && !opts.refreshedAuthentication)) {
1111
1112
  // try re-authenticate
1112
1113
  opts.refreshedAuthentication = true;
1113
1114
  return _this.refreshAccessToken()
@@ -38315,6 +38316,8 @@
38315
38316
  options = {
38316
38317
  filename: this.correspondance.title ? this.correspondance.title : 'myDocument.pdf',
38317
38318
  // xfdfString,
38319
+ includeAnnotations: true,
38320
+ flatten: true,
38318
38321
  flags: saveOptions.LINEARIZED,
38319
38322
  downloadType: 'pdf'
38320
38323
  };