Skip to content

Commit 8e2bcfc

Browse files
committed
Revert "fix: don't send the raw Buffer data in the headers"
This reverts commit 30eea4f.
1 parent 30eea4f commit 8e2bcfc

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

index.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,9 @@ class Client {
6565

6666
delete data.query;
6767

68-
const body = data.body;
68+
const body = JSON.stringify(data.body);
6969
delete data.body;
7070

71-
const rawData = data.rawdata;
72-
delete data.rawdata;
73-
7471
const headers: { [key: string]: any } = {};
7572

7673
Object.keys(data).forEach((key) => {
@@ -88,8 +85,7 @@ class Client {
8885
const response = await this.#fetch(url.format(target), {
8986
method: "POST",
9087
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 }),
88+
body,
9389
headers,
9490
dispatcher: proxyAgent,
9591
});

0 commit comments

Comments
 (0)