Skip to content

Commit 8a10f2d

Browse files
committed
switched back to querystring
1 parent a9e25d3 commit 8a10f2d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

QencodeApiClient.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
const axios = require('axios');
2+
const querystring = require('querystring');
23

34
const TranscodingTask = require('./Classes/TranscodingTask');
45

@@ -105,7 +106,7 @@ class QencodeApiClient {
105106

106107
if (parameters != null && !(typeof parameters === 'string')){
107108
// convert parameters to string like 'api_key=5adb0584aa29f'
108-
parameters = new URLSearchParams(parameters).toString();
109+
parameters = querystring.stringify(parameters);
109110
}
110111

111112
let retry = 20;

0 commit comments

Comments
 (0)