Skip to content

Commit ae4f152

Browse files
committed
fix: header errors for large files in batch downloads
1 parent f802fbb commit ae4f152

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM debian:trixie-slim AS base
22

3-
ENV DIRBROWSER_VERSION=4.4.0
3+
ENV DIRBROWSER_VERSION=4.4.1
44

55
ENV DEBIAN_FRONTEND=noninteractive
66

server/nginx/conf.d/default.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ server {
1717
$[if `process.env.BATCH_DOWNLOAD === "true"`]$
1818
# Allow streaming responses (e.g. ZipStream batch downloads)
1919
fastcgi_buffering off;
20+
fastcgi_read_timeout 1h;
21+
fastcgi_send_timeout 1h;
22+
send_timeout 1h;
2023
$[end]$
2124
$[if `process.env.EXPERIMENTAL_CACHE`]$
2225
fastcgi_cache cache;

src/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@ function downloadBatch(array $urls) {
651651
path: $f['full_path'],
652652
lastModificationDateTime: $lastMod,
653653
exactSize: (int) $f['size'],
654-
enableZeroHeader: false,
654+
enableZeroHeader: true,
655655
);
656656
}
657657

0 commit comments

Comments
 (0)