1
Fork 0
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:
nobody 2025-02-19 18:42:47 +01:00 committed by GitHub
parent 8e9a13956b
commit d8ce61c3c6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 ', '')