@modern-js/create-request 2.8.1-alpha.0 → 2.8.1-alpha.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.
@@ -105,6 +105,7 @@ const createRequest = (path, method, port, httpMethodDecider = "functionName", f
105
105
  if (method.toLowerCase() === "get") {
106
106
  body = void 0;
107
107
  }
108
+ headers.accept = `application/json,*/*;q=0.8`;
108
109
  return fetcher(finalURL, {
109
110
  method,
110
111
  body,
@@ -240,6 +240,7 @@ var createRequest = function(path, method, port) {
240
240
  if (method.toLowerCase() === "get") {
241
241
  body = void 0;
242
242
  }
243
+ headers.accept = "application/json,*/*;q=0.8";
243
244
  return [
244
245
  2,
245
246
  fetcher(finalURL, {
@@ -72,6 +72,7 @@ const createRequest = (path, method, port, httpMethodDecider = "functionName", f
72
72
  if (method.toLowerCase() === "get") {
73
73
  body = void 0;
74
74
  }
75
+ headers.accept = `application/json,*/*;q=0.8`;
75
76
  return fetcher(finalURL, {
76
77
  method,
77
78
  body,
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "2.8.1-alpha.0",
14
+ "version": "2.8.1-alpha.1",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "types": "./dist/types/index.d.ts",
17
17
  "main": "./dist/cjs/index.js",