@satorijs/adapter-lark 3.8.1 → 3.8.2
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/lib/index.cjs +1 -1
- package/package.json +1 -1
- package/src/bot.ts +1 -1
package/lib/index.cjs
CHANGED
|
@@ -3310,7 +3310,7 @@ var LarkBot = class extends import_core5.Bot {
|
|
|
3310
3310
|
const response = await this.http("/" + params.path, {
|
|
3311
3311
|
method,
|
|
3312
3312
|
headers,
|
|
3313
|
-
data: body,
|
|
3313
|
+
data: method === "GET" || method === "HEAD" ? null : body,
|
|
3314
3314
|
params: Object.fromEntries(query.entries()),
|
|
3315
3315
|
responseType: "arraybuffer",
|
|
3316
3316
|
validateStatus: /* @__PURE__ */ __name(() => true, "validateStatus")
|
package/package.json
CHANGED
package/src/bot.ts
CHANGED
|
@@ -30,7 +30,7 @@ export class LarkBot<C extends Context = Context> extends Bot<C, LarkBot.Config>
|
|
|
30
30
|
const response = await this.http('/' + params.path, {
|
|
31
31
|
method,
|
|
32
32
|
headers,
|
|
33
|
-
data: body,
|
|
33
|
+
data: method === 'GET' || method === 'HEAD' ? null : body,
|
|
34
34
|
params: Object.fromEntries(query.entries()),
|
|
35
35
|
responseType: 'arraybuffer',
|
|
36
36
|
validateStatus: () => true,
|