Skip to content

Commit

Permalink
fix: broke when missing index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
ArneBab committed Oct 28, 2023
1 parent 699653b commit 4ce676f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions fcp3/sitemgr.py
Original file line number Diff line number Diff line change
Expand Up @@ -1439,9 +1439,10 @@ def markManifestFiles(self):
maxsize = self.maxManifestSizeBytes - redirectSize * len(self.files)
totalsize = metadataSize
# we add the index as first file, so it is always fast.
self.indexRec['target'] = "manifest"
totalsize += self.indexRec['sizebytes']
maxsize += redirectSize # no redirect needed for this file
if self.indexRec:
self.indexRec['target'] = "manifest"
totalsize += self.indexRec['sizebytes']
maxsize += redirectSize # no redirect needed for this file
# also we always add the activelink
if self.activelinkRec and (self.activelinkRec['sizebytes'] + totalsize
<= maxsize + redirectSize):
Expand Down

0 comments on commit 4ce676f

Please sign in to comment.