Skip to content

Commit 0054692

Browse files
ggaabemandarini
authored andcommitted
fix(functions): missing body when Content-Type header supplied by dev
1 parent 188fa17 commit 0054692

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/core/functions-js/src/FunctionsClient.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,9 @@ export class FunctionsClient {
8989
_headers['Content-Type'] = 'application/json'
9090
body = JSON.stringify(functionArgs)
9191
}
92+
} else {
93+
// if the Content-Type was supplied, simply set the body
94+
body = functionArgs
9295
}
9396

9497
const response = await this.fetch(url.toString(), {

0 commit comments

Comments
 (0)