diff --git a/wchat/common/HttpClient.php b/wchat/common/HttpClient.php index c0b1290..eee966d 100644 --- a/wchat/common/HttpClient.php +++ b/wchat/common/HttpClient.php @@ -213,7 +213,7 @@ class HttpClient */ public function setHeader($key, $value) { - $this->header[strtoupper($key)] = $value; + $this->header[$key] = $value; } /** @@ -222,7 +222,7 @@ class HttpClient */ public function addHeader($key, $value) { - $this->header[strtoupper($key)] = $value; + $this->header[$key] = $value; } /** @@ -504,9 +504,6 @@ class HttpClient if (!empty($this->header)) { $client->setHeaders($this->header); } - - var_dump($this->header); - $client->setMethod(strtoupper($this->method)); if (strtolower($this->method) == self::GET && !empty($data)) { $url .= '?' . $data; @@ -950,7 +947,7 @@ class HttpClient return []; } foreach ($headers as $key => $val) { - $this->header[strtoupper($key)] = $val; + $this->header[$key] = $val; } return $this->header; }