legacy: Fix getting headers from media-legacy