Fixes Content-Type header not being set correct for tar downloads.