Skip to content

Commit c9f42e5

Browse files
authored
Merge pull request #105 from 3ximus/master
Increase create job body limit on post request
2 parents 9d24121 + d3b6c0a commit c9f42e5

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

lib/JobsResource.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,9 @@ export default class JobsResource {
6969

7070
// See below for an explanation on how this type signature works
7171
async create(data: JobTemplate | null = null): Promise<Job> {
72-
const response = await this.cloudConvert.axios.post('jobs', data);
72+
const response = await this.cloudConvert.axios.post('jobs', data, {
73+
maxBodyLength: Infinity
74+
});
7375
return response.data.data;
7476
}
7577

0 commit comments

Comments
 (0)