Skip to content

Commit 9f3a3ce

Browse files
committed
refactor: improves body check
1 parent f46fcde commit 9f3a3ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Providers/Http/DTO/Request.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ public function hasHeader(string $name): bool
189189
public function getBody(): ?string
190190
{
191191
// GET requests don't have a body
192-
if ($this->method === HttpMethodEnum::GET()) {
192+
if (!$this->method->hasBody()) {
193193
return null;
194194
}
195195

0 commit comments

Comments
 (0)