We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 30eea4f commit 8e2bcfcCopy full SHA for 8e2bcfc
1 file changed
index.ts
@@ -65,12 +65,9 @@ class Client {
65
66
delete data.query;
67
68
- const body = data.body;
+ const body = JSON.stringify(data.body);
69
delete data.body;
70
71
- const rawData = data.rawdata;
72
- delete data.rawdata;
73
-
74
const headers: { [key: string]: any } = {};
75
76
Object.keys(data).forEach((key) => {
@@ -88,8 +85,7 @@ class Client {
88
85
const response = await this.#fetch(url.format(target), {
89
86
method: "POST",
90
87
mode: data["sec-fetch-mode"],
91
- // Take advantage of the `rawData` field to send the original request body in order to be able to verify the signature
92
- body: JSON.stringify({ body, rawData }),
+ body,
93
headers,
94
dispatcher: proxyAgent,
95
});
0 commit comments