mirror of
https://github.com/danog/TelegramApiServer.git
synced 2024-11-26 11:54:42 +01:00
BUmp
This commit is contained in:
parent
19ccf73d9e
commit
c005d86a47
@ -14,8 +14,6 @@ use ReflectionProperty;
|
|||||||
use RuntimeException;
|
use RuntimeException;
|
||||||
use TelegramApiServer\EventObservers\EventObserver;
|
use TelegramApiServer\EventObservers\EventObserver;
|
||||||
|
|
||||||
use function Amp\Socket\SocketAddress\fromString;
|
|
||||||
|
|
||||||
final class Client
|
final class Client
|
||||||
{
|
{
|
||||||
public static Client $self;
|
public static Client $self;
|
||||||
|
@ -92,7 +92,7 @@ abstract class AbstractApiController
|
|||||||
|
|
||||||
switch (true) {
|
switch (true) {
|
||||||
case $contentType === 'application/x-www-form-urlencoded':
|
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);
|
$form = (new StreamingFormParser())->parseForm($this->request);
|
||||||
$post = [];
|
$post = [];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user