Skip to content

Commit

Permalink
charset utf-8 deleted from request header (#751)
Browse files Browse the repository at this point in the history
  • Loading branch information
volovyks authored Dec 15, 2021
1 parent aa33ce8 commit ee85db5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/utils/web.js

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

2 changes: 1 addition & 1 deletion src/utils/web.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export async function fetchJson(connectionInfoOrUrl: string | ConnectionInfo, js
const response = await fetch(connectionInfo.url, {
method: json ? 'POST' : 'GET',
body: json ? json : undefined,
headers: { ...connectionInfo.headers, 'Content-Type': 'application/json; charset=utf-8' }
headers: { ...connectionInfo.headers, 'Content-Type': 'application/json' }
});
if (!response.ok) {
if (response.status === 503) {
Expand Down

0 comments on commit ee85db5

Please sign in to comment.