This commit is contained in:
Daniil Gentili 2024-07-13 15:26:17 +02:00
parent 19ccf73d9e
commit c005d86a47
2 changed files with 1 additions and 3 deletions

View File

@ -14,8 +14,6 @@ use ReflectionProperty;
use RuntimeException;
use TelegramApiServer\EventObservers\EventObserver;
use function Amp\Socket\SocketAddress\fromString;
final class Client
{
public static Client $self;

View File

@ -92,7 +92,7 @@ abstract class AbstractApiController
switch (true) {
case $contentType === 'application/x-www-form-urlencoded':
case \mb_strpos($contentType, 'multipart/form-data') !== false:
case \str_contains($contentType, 'multipart/form-data'):
$form = (new StreamingFormParser())->parseForm($this->request);
$post = [];