summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2022-03-12 11:56:10 +0100
committerErich Eckner <git@eckner.net>2022-03-12 11:56:10 +0100
commit08d5a11a0806713ead3c0928123c3ceb0c296d18 (patch)
tree077e49eb3675775c7a032d7a7b2de47aa6ad173d
parente0fe18ad90d26da5159ae0451fc74bab212f8133 (diff)
downloadsourceMirror-08d5a11a0806713ead3c0928123c3ceb0c296d18.tar.xz
set proper Content-Type
-rw-r--r--mirror.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/mirror.php b/mirror.php
index 02cd4d3..763bf47 100644
--- a/mirror.php
+++ b/mirror.php
@@ -86,6 +86,7 @@
);
}
else {
+ header("Content-Type: ".mime_content_type($pfad));
header('Content-Length: ' . $stat['size']);
$handle = fopen($pfad,"r");
fpassthru($handle);