Skip to content

Commit 2ff5f6f

Browse files
committed
fix: headers
1 parent 30c17f2 commit 2ff5f6f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

nodes/CapSolver/libs/task.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ export class Task {
1717
url: `${API_URL}/createTask`,
1818
body: createTaskPayload,
1919
json: true,
20+
headers: {
21+
'Content-Type': 'application/json',
22+
},
2023
});
2124
if (!response.taskId) {
2225
throw new NodeOperationError(
@@ -45,6 +48,9 @@ export class Task {
4548
url: `${API_URL}/getTaskResult`,
4649
body: getResultPayload,
4750
json: true,
51+
headers: {
52+
'Content-Type': 'application/json',
53+
},
4854
});
4955
} catch (error: any) {
5056
throw new NodeOperationError(

0 commit comments

Comments
 (0)