Skip to content

Commit 3272703

Browse files
author
Justin Hayes
committed
Fixed the payload generation
1 parent f7f83d8 commit 3272703

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Requests/Payload.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ protected function generateFromGuzzleRequest(GuzzleRequest $request) : string
4949
'method' => $this->request->getMethod(),
5050
'timestamp' => $timestamp,
5151
'uri' => (string) $this->request->getUri(),
52-
'content' => $this->request->getBody()
52+
'content' => $this->request->getBody()->getContents()
5353
], JSON_UNESCAPED_SLASHES);
5454
}
5555

tests/Requests/PayloadTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function it_translates_a_guzzle_request_to_a_json_encoded_string()
3131
'method' => $method,
3232
'timestamp' => $now,
3333
'uri' => $uri,
34-
'content' => $request->getBody()
34+
'content' => $request->getBody()->getContents()
3535
], JSON_UNESCAPED_SLASHES);
3636

3737
$this->assertEquals($expected, (string) new Payload($request));

0 commit comments

Comments
 (0)