File tree 2 files changed +15
-6
lines changed
2 files changed +15
-6
lines changed Original file line number Diff line number Diff line change 4
4
"type" : " library" ,
5
5
"license" : " MIT" ,
6
6
"require" : {
7
- "symfony/http-client" : " ^5.0" ,
8
- "symfony/browser-kit" : " ^5.0" ,
9
- "illuminate/support" : " ^8.0" ,
10
- "php" : " ^7.3"
7
+ "symfony/http-client" : " ^5.2" ,
8
+ "symfony/browser-kit" : " ^5.2" ,
9
+ "illuminate/support" : " ^8.0"
11
10
},
12
11
"require-dev" : {
13
- "phpunit/phpunit" : " ^9.0" ,
14
12
"illuminate/container" : " ^8.0" ,
15
13
"illuminate/cache" : " ^8.0" ,
16
14
"illuminate/pipeline" : " ^8.0"
Original file line number Diff line number Diff line change @@ -50,10 +50,21 @@ public function getContent($throw = true)
50
50
try {
51
51
return $ this ->toCollection ();
52
52
} catch (JsonException $ exception ) {
53
- return $ this ->baseResponse -> getContent ($ throw );
53
+ return $ this ->getRawContent ($ throw );
54
54
}
55
55
}
56
56
57
+ /**
58
+ * Get body of response
59
+ *
60
+ * @param bool $throw
61
+ * @return string
62
+ */
63
+ public function getRawContent ($ throw = true )
64
+ {
65
+ return $ this ->baseResponse ->getContent ($ throw );
66
+ }
67
+
57
68
/**
58
69
* Pass response content to function
59
70
*
You can’t perform that action at this time.
0 commit comments