Skip to content

Commit 26b504f

Browse files
committed
create a default response class if none is provided
1 parent e586d06 commit 26b504f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

system/HTTP/CURLRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public function __construct(App $config, URI $uri, ?ResponseInterface $response
112112

113113
parent::__construct('GET', $uri);
114114

115-
$this->responseOrig = $response;
115+
$this->responseOrig = $response ?? new Response(config('App'));
116116
$this->baseURI = $uri->useRawQueryString();
117117
$this->defaultOptions = $options;
118118

0 commit comments

Comments
 (0)