From ff314b286fa0971a6558a3b0450b19a77b6a0b82 Mon Sep 17 00:00:00 2001
From: Cerdic <cedric@yterium.com>
Date: Thu, 21 Oct 2021 11:55:25 +0200
Subject: [PATCH] Coquille restante d'un renommage de l'option

---
 ecrire/inc/distant.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ecrire/inc/distant.php b/ecrire/inc/distant.php
index 37babc7021..7ce188738e 100644
--- a/ecrire/inc/distant.php
+++ b/ecrire/inc/distant.php
@@ -443,7 +443,7 @@ function recuperer_url($url, $options = []) {
 			$head_add .= $champ . ': ' . $valeur . "\r\n";
 		}
 		// ne pas le repasser a recuperer_url si on follow un location, car ils seront dans datas
-		unset($options['entetes']);
+		unset($options['headers']);
 	}
 
 	if (!empty($options['datas'])) {
-- 
GitLab