Skip to content

Commit b154e8b

Browse files
committed
fix: reassign request with body
1 parent 1bd1a4c commit b154e8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Service/MtaService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public function callFunction(string $resourceName, string $functionName, array $
7878

7979
$endpoint = $this->getEndpointToResourceFunction($resourceName, $functionName);
8080
$request = $this->requestFactory->createRequest(self::HTTP_METHOD, $endpoint);
81-
$request->withBody($streamBody);
81+
$request = $request->withBody($streamBody);
8282

8383
$auth = new BasicAuth($this->auth->getUser(), $this->auth->getPassword());
8484
$request = $auth->authenticate($request);

0 commit comments

Comments
 (0)