We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3851ea3 commit 0060a42Copy full SHA for 0060a42
src/lib/http-requests.ts
@@ -53,14 +53,12 @@ class HttpRequests {
53
}
54
55
try {
56
- const response: Response = await httpResponseErrorHandler(
57
- await fetch(constructURL.toString(), {
58
- ...config,
59
- method,
60
- body: JSON.stringify(body),
61
- headers: this.headers,
62
- })
63
- )
+ const response: Response = await fetch(constructURL.toString(), {
+ ...config,
+ method,
+ body: JSON.stringify(body),
+ headers: this.headers,
+ }).then((res) => httpResponseErrorHandler(res))
64
const parsedBody: string = await response.text()
65
66
0 commit comments