unpoly-rails 3.0.0.rc3 → 3.0.0.rc4

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,7 +5,7 @@
5
5
  /***/ (() => {
6
6
 
7
7
  window.up = {
8
- version: '3.0.0-rc3'
8
+ version: '3.0.0-rc4'
9
9
  };
10
10
 
11
11
 
@@ -6088,6 +6088,9 @@ up.Request = (_a = class Request extends up.Record {
6088
6088
  this.addAutoHeader(up.protocol.headerize('version'), up.version);
6089
6089
  }
6090
6090
  addAutoHeader(name, value) {
6091
+ if (u.isMissing(value)) {
6092
+ return;
6093
+ }
6091
6094
  if (u.isOptions(value) || u.isArray(value)) {
6092
6095
  value = u.safeStringifyJSON(value);
6093
6096
  }
@@ -6198,7 +6201,9 @@ up.Request.Cache = class Cache {
6198
6201
  }
6199
6202
  }
6200
6203
  alias(existingCachedRequest, newRequest) {
6201
- existingCachedRequest = this.wrap(existingCachedRequest);
6204
+ existingCachedRequest = this.get(existingCachedRequest);
6205
+ if (!existingCachedRequest)
6206
+ return;
6202
6207
  newRequest = this.wrap(newRequest);
6203
6208
  this.track(existingCachedRequest, newRequest, { force: true });
6204
6209
  this.put(newRequest);