Revert "改名"

This reverts commit fdf58326
This commit is contained in:
2022-01-11 15:40:55 +08:00
parent aed0e61531
commit a88787a530
+2 -1
View File
@@ -135,7 +135,8 @@ class AsyncClient extends ClientAbstracts
$array = [];
$array[] = strtoupper($this->getMethod()) . ' ' . $path . ' HTTP/1.1';
if (!empty($this->getHeader())) {
foreach ($this->getHeader() as $key => $value) {
$headers = $this->getHeader();
foreach ($headers as $key => $value) {
$array[] = sprintf('%s: %s', $key, $value);
}
}