Skip to content

Commit

Permalink
fixed edge case where Array's were not being stringified in http requ…
Browse files Browse the repository at this point in the history
…ests.
  • Loading branch information
Cameron Campbell authored and Cameron Campbell committed Aug 25, 2024
1 parent 42c98ed commit 8696731
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "openblox",
"description": "Roblox API Wrapper For Both Classic And OpenCloud APIs.",
"type": "commonjs",
"version": "1.0.47",
"version": "1.0.48",
"license": "MIT",
"bugs": {
"url": "https://github.com/MightyPart/openblox/issues"
Expand Down
2 changes: 1 addition & 1 deletion src/http/httpHandler/httpHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export const HttpHandler = async <RawData extends any = any>(

const requestData = {
url, method,
body: body?.constructor == Object ? JSON.stringify(body) : body,
body: (body?.constructor == Object || Array.isArray(body)) ? JSON.stringify(body) : body,
formData: parsedFormData,
}

Expand Down

0 comments on commit 8696731

Please sign in to comment.