1 |
|
2 |
|
3 |
|
4 | export function getUploadHttpClient(http, options) {
|
5 | var _ref;
|
6 | const {
|
7 | hostUpload,
|
8 | defaultHostnameUpload,
|
9 | timeout
|
10 | } = http.httpClientParams;
|
11 | const uploadHttp = http.cloneWithNewParams({
|
12 | host: hostUpload || defaultHostnameUpload,
|
13 |
|
14 | timeout: (_ref = timeout !== null && timeout !== void 0 ? timeout : options === null || options === void 0 ? void 0 : options.uploadTimeout) !== null && _ref !== void 0 ? _ref : 300000
|
15 | });
|
16 | return uploadHttp;
|
17 | } |
\ | No newline at end of file |