Skip to content

Commit

Permalink
use the HTTP facade instead of manually creating a new request
Browse files Browse the repository at this point in the history
This allows consuming applications to use Http::fake() to mock the FileMaker Data API.
  • Loading branch information
macbookandrew committed Jul 25, 2024
1 parent cdfd2af commit cdbb9a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Services/FileMakerConnection.php
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,7 @@ protected function prepareRequestForSending($request = null)
if (method_exists(Factory::class, 'createPendingRequest')) {
$request = Http::createPendingRequest();
} else {
$request = new PendingRequest();
$request = Http::acceptJson();
}
}

Expand Down

0 comments on commit cdbb9a8

Please sign in to comment.