Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
yuanzhihai committed Dec 5, 2022
1 parent e34628f commit a74fa5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ public function debug($class)
//请求头
$requestHeaders = [];

foreach ( $request->getHeaders() as $k => $vs ) {
foreach ( (array)$request->getHeaders() as $k => $vs ) {
foreach ( $vs as $v ) {
$requestHeaders[] = "$k: $v";
}
Expand All @@ -300,7 +300,7 @@ public function debug($class)
//响应头
$responseHeaders = [];

foreach ( $response->getHeaders() as $k => $vs ) {
foreach ( (array)$response->getHeaders() as $k => $vs ) {
foreach ( $vs as $v ) {
$responseHeaders[] = "$k: $v";
}
Expand Down

0 comments on commit a74fa5a

Please sign in to comment.