mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-10-10 22:15:18 +00:00
Fix Curl::unsetHeader()
This commit is contained in:
@@ -1068,6 +1068,11 @@ class Curl
|
||||
public function unsetHeader($key)
|
||||
{
|
||||
unset($this->headers[$key]);
|
||||
$headers = array();
|
||||
foreach ($this->headers as $key => $value) {
|
||||
$headers[] = $key . ': ' . $value;
|
||||
}
|
||||
$this->setOpt(CURLOPT_HTTPHEADER, $headers);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user