Skip to content

Commit

Permalink
1.12.4
Browse files Browse the repository at this point in the history
  • Loading branch information
rosmcmahon committed Jan 26, 2023
1 parent b82771a commit 52ec069
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "arweave",
"version": "1.12.3",
"version": "1.12.4",
"description": "Arweave JS client library",
"main": "./node/index.js",
"react-native": "./node/index.js",
Expand Down
2 changes: 1 addition & 1 deletion src/common/lib/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export default class Api {
): Promise<ResponseWithData<T>> {
const headers = new Headers(config?.headers || {});

if(!headers.get('content-type')?.includes('application/json')){
if (!headers.get("content-type")?.includes("application/json")) {
headers.append("content-type", "application/json");
}
headers.append("accept", "application/json, text/plain, */*");
Expand Down

0 comments on commit 52ec069

Please sign in to comment.