WC_Download_Handler::remove_download_headers
Remove headers that describe a streamed download before sending another response type.
Method of the class: WC_Download_Handler{}
No Hooks.
Returns
null. Nothing (null).
Usage
$result = WC_Download_Handler::remove_download_headers(): void;
WC_Download_Handler::remove_download_headers() WC Download Handler::remove download headers code WC 11.2.2
private static function remove_download_headers(): void {
foreach ( array( 'Content-Type', 'Content-Description', 'Content-Disposition', 'Content-Transfer-Encoding', 'Content-Length', 'Content-Range', 'Accept-Ranges' ) as $header ) {
header_remove( $header );
}
}