Dave Jarvis' Repositories

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

Reorders headers again

AuthorDaveJarvis <email>
Date2023-11-10 19:52:43 GMT-0800
Commit57b27e36d4b205db206c855986175d74c3205a93
Parentbc44a5f
Delta2 lines added, 2 lines removed
www/downloads/counter.php
header( 'Cache-Control: public, must-revalidate, post-check=0, pre-check=0' );
header( "Content-Disposition: attachment; filename=\"$filename\"" );
- header( "Content-Type: $content_type" );
$content_length = $size;
}
- header( "Content-Length: $content_length" );
header( 'Accept-Ranges: bytes' );
+ header( "Content-Length: $content_length" );
+ header( "Content-Type: $content_type" );
// If the file doesn't exist, don't count it as a download.