Author: Adam Pioterek <adam.pioterek@protonmail.ch>
converter: x-header for uncompressed size
converter/gtfs.php | 1 +
diff --git a/converter/gtfs.php b/converter/gtfs.php index ef24767aebb950cb5af6c3de5c69f30abd50c358..8a4195475aada7d52d867d2e9ab3bb176e033637 100644 --- a/converter/gtfs.php +++ b/converter/gtfs.php @@ -29,6 +29,7 @@ header("ETag: $current"); header('Content-Type: application/octet-stream'); header('Content-Disposition: attachment; filename="timetable.db.gz"'); header('Content-Length: ' . filesize("$current.db.gz")); + header('X-Uncompressed-Content-Length: ' . $sizeU); readfile("$current.db.gz"); } ?>