Skip to content

Commit cdbb9a8

Browse files
committed
use the HTTP facade instead of manually creating a new request
This allows consuming applications to use Http::fake() to mock the FileMaker Data API.
1 parent cdfd2af commit cdbb9a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Services/FileMakerConnection.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -697,7 +697,7 @@ protected function prepareRequestForSending($request = null)
697697
if (method_exists(Factory::class, 'createPendingRequest')) {
698698
$request = Http::createPendingRequest();
699699
} else {
700-
$request = new PendingRequest();
700+
$request = Http::acceptJson();
701701
}
702702
}
703703

0 commit comments

Comments
 (0)