1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-16 03:34:33 +02:00
This commit is contained in:
Ryan Cramer
2019-06-26 10:51:30 -04:00
parent f6702407ff
commit fdd2e7216d

View File

@@ -609,7 +609,11 @@ class WireHttp extends Wire {
} }
if(count($this->headers)) { if(count($this->headers)) {
curl_setopt($curl, CURLOPT_HTTPHEADER, $this->headers); $headers = array();
foreach($this->headers as $name => $value) {
$headers[] = "$name: $value";
}
curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);
} }
if($method == 'POST') { if($method == 'POST') {