Dave Jarvis' Repositories

git clone https://repo.autonoma.ca/repo/keenwrite.git

Removes custom content type

AuthorDaveJarvis <email>
Date2023-11-10 19:23:47 GMT-0800
Commitbc3975fb918523cf2139f92c19248f15310a5689
Parent98d1f9b
Delta3 lines added, 4 lines removed, 1-line decrease
www/downloads/.htaccess
</IfModule>
-SetEnvIfNoCase REQUEST_URI counter\.php$ no-gzip dont-vary
-
www/downloads/counter.php
$range_bytes = $seek_start . '-' . $seek_end . '/' . $size;
+ header( 'Accept-Ranges: bytes' );
header( "Content-Range: bytes $range_bytes" );
}
- header( "Content-Type: $content_type" );
+ header("Content-Type: application/octet-stream");
+ //header( "Content-Type: $content_type" );
header( 'Pragma: public' );
header( 'Expires: 0' );
header( 'Cache-Control: must-revalidate, post-check=0, pre-check=0' );
header( 'Cache-Control: public' );
- header( 'Accept-Ranges: bytes' );
header( 'Content-Length: ' . ($seek_end - $seek_start + 1) );
header( 'Content-Transfer-Encoding: binary' );