Skip to content

Commit 4acc802

Browse files
mandariniggaabe
andauthored
fix(functions): missing body when Content-Type header supplied by dev (#1758)
Co-authored-by: Gabriel Garrett <[email protected]>
1 parent b17b49b commit 4acc802

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)