@webqit/webflo 0.11.56-0 → 0.11.57

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.
package/package.json CHANGED
@@ -12,7 +12,7 @@
12
12
  "vanila-javascript"
13
13
  ],
14
14
  "homepage": "https://webqit.io/tooling/webflo",
15
- "version": "0.11.56-0",
15
+ "version": "0.11.57",
16
16
  "license": "MIT",
17
17
  "repository": {
18
18
  "type": "git",
@@ -33,9 +33,6 @@ export default class Application extends _Application {
33
33
  if (!event.request.headers.has('Accept')) {
34
34
  event.request.headers.set('Accept', 'application/json');
35
35
  }
36
- if (event.request.body && !event.request.headers.has('Content-Type')) {
37
- event.request.headers.set('Content-Type', 'application/json');
38
- }
39
36
  }
40
37
  return remoteFetch(event.request);
41
38
  }, remoteFetch);
@@ -33,9 +33,6 @@ export default class Application extends _Application {
33
33
  if (!event.request.headers.has('Accept')) {
34
34
  event.request.headers.set('Accept', 'application/json');
35
35
  }
36
- if (event.request.body && !event.request.headers.has('Content-Type')) {
37
- event.request.headers.set('Content-Type', 'application/json');
38
- }
39
36
  }
40
37
  return remoteFetch(event.request);
41
38
  }, remoteFetch);
@@ -18,10 +18,6 @@ const xxHttpMessage = (whatwagHttpMessage, xHeaders) => {
18
18
  if (meta.headers) { this.headers.json(meta.headers); }
19
19
  // ------------
20
20
  let attrs = {};
21
-
22
- if (meta.body instanceof Response) {
23
- throw new Error('0000000000000000');
24
- }
25
21
  Object.defineProperty(this, '_attrs', { get: () => attrs });
26
22
  Object.defineProperty(this, 'meta', { get: () => meta });
27
23
  }