api-def 0.8.3 → 0.8.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.
|
@@ -163,7 +163,7 @@ var FetchRequestBackend = /** @class */ (function () {
|
|
|
163
163
|
}, {});
|
|
164
164
|
var url = context.getRequestUrl();
|
|
165
165
|
var promise = this.fetch(url.href, {
|
|
166
|
-
method: context.method,
|
|
166
|
+
method: context.method.toUpperCase(),
|
|
167
167
|
body: bodyJsonify ? JSON.stringify(body) : body,
|
|
168
168
|
headers: parsedHeaders,
|
|
169
169
|
mode: "cors",
|
|
@@ -94,7 +94,7 @@ export default class FetchRequestBackend {
|
|
|
94
94
|
}, {});
|
|
95
95
|
const url = context.getRequestUrl();
|
|
96
96
|
const promise = this.fetch(url.href, {
|
|
97
|
-
method: context.method,
|
|
97
|
+
method: context.method.toUpperCase(),
|
|
98
98
|
body: bodyJsonify ? JSON.stringify(body) : body,
|
|
99
99
|
headers: parsedHeaders,
|
|
100
100
|
mode: "cors",
|