mirror of
https://github.com/diced/zipline.git
synced 2025-04-11 23:31:17 -05:00
fixed formatting for prettier
This commit is contained in:
parent
8e9a13956b
commit
d8ce61c3c6
1 changed files with 2 additions and 3 deletions
|
@ -208,12 +208,11 @@ export function parseHeaders(headers: UploadHeaders, fileConfig: Config['files']
|
|||
}
|
||||
|
||||
const returnDomain = headers['x-zipline-domain'];
|
||||
if (typeof returnDomain === 'string') {
|
||||
const domainArray = returnDomain.split(",");
|
||||
if (returnDomain && typeof returnDomain === 'string') {
|
||||
const domainArray = returnDomain.split(',');
|
||||
response.overrides.returnDomain = domainArray[Math.floor(Math.random() * domainArray.length)].trim();
|
||||
}
|
||||
|
||||
|
||||
if (headers['content-range']) {
|
||||
const [start, end, total] = headers['content-range']
|
||||
.replace('bytes ', '')
|
||||
|
|
Loading…
Add table
Reference in a new issue