Skip to content

Commit b5fd956

Browse files
committed
Fix "unexpected end of file" error
This workaround fixes a bug in axios. See https://stackoverflow.com/questions/74779161/why-axios-returns-z-buf-error
1 parent d5352e0 commit b5fd956

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

templates/node/lib/client.js.twig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ class Client {
99
constructor() {
1010
this.endpoint = '{{spec.endpoint}}';
1111
this.headers = {
12+
'accept-encoding': '*',
1213
'content-type': '',
1314
'x-sdk-name': '{{ sdk.name }}',
1415
'x-sdk-platform': '{{ sdk.platform }}',

0 commit comments

Comments
 (0)