mirror of
https://github.com/processwire/processwire.git
synced 2025-08-14 02:34:24 +02:00
Fix issue processwire/processwire-issues#884
This commit is contained in:
@@ -609,7 +609,11 @@ class WireHttp extends Wire {
|
||||
}
|
||||
|
||||
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') {
|
||||
|
Reference in New Issue
Block a user