Commit 3426ea9 1 parent 98efc08 commit 3426ea9 Copy full SHA for 3426ea9
File tree 1 file changed +0
-17
lines changed
1 file changed +0
-17
lines changed Original file line number Diff line number Diff line change 5
5
namespace Yiisoft \Yii \Debug \Collector \Web ;
6
6
7
7
use GuzzleHttp \Psr7 \Message ;
8
- use JsonException ;
9
8
use Psr \Http \Message \ResponseInterface ;
10
9
use Psr \Http \Message \ServerRequestInterface ;
11
10
use Yiisoft \Yii \Debug \Collector \CollectorTrait ;
@@ -39,21 +38,6 @@ public function getCollected(): array
39
38
if (!$ this ->isActive ()) {
40
39
return [];
41
40
}
42
- $ content = null ;
43
- if ($ this ->response !== null ) {
44
- $ stream = $ this ->response ->getBody ();
45
- if ($ stream ->isReadable () && $ stream ->isSeekable ()) {
46
- $ position = $ stream ->tell ();
47
- $ stream ->rewind ();
48
- $ content = $ stream ->getContents ();
49
- try {
50
- $ content = json_decode ($ content , associative: true , flags: JSON_THROW_ON_ERROR );
51
- } catch (JsonException ) {
52
- // pass
53
- }
54
- $ stream ->seek ($ position );
55
- }
56
- }
57
41
58
42
$ requestRaw = null ;
59
43
if ($ this ->request instanceof ServerRequestInterface) {
@@ -79,7 +63,6 @@ public function getCollected(): array
79
63
'requestRaw ' => $ requestRaw ,
80
64
'response ' => $ this ->response ,
81
65
'responseRaw ' => $ responseRaw ,
82
- 'content ' => $ content ,
83
66
];
84
67
}
85
68
You can’t perform that action at this time.
0 commit comments