mirror of
https://github.com/danog/TelegramApiServer.git
synced 2024-12-02 17:27:55 +01:00
Compare commits
6 Commits
fb55db2e23
...
c005d86a47
Author | SHA1 | Date | |
---|---|---|---|
c005d86a47 | |||
19ccf73d9e | |||
|
3d6a97d4cf | ||
|
774615b058 | ||
|
ee98c71109 | ||
|
de3b029534 |
12
composer.lock
generated
12
composer.lock
generated
@ -4700,16 +4700,16 @@
|
||||
},
|
||||
{
|
||||
"name": "composer/semver",
|
||||
"version": "3.4.0",
|
||||
"version": "3.4.2",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/composer/semver.git",
|
||||
"reference": "35e8d0af4486141bc745f23a29cc2091eb624a32"
|
||||
"reference": "c51258e759afdb17f1fd1fe83bc12baaef6309d6"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/composer/semver/zipball/35e8d0af4486141bc745f23a29cc2091eb624a32",
|
||||
"reference": "35e8d0af4486141bc745f23a29cc2091eb624a32",
|
||||
"url": "https://api.github.com/repos/composer/semver/zipball/c51258e759afdb17f1fd1fe83bc12baaef6309d6",
|
||||
"reference": "c51258e759afdb17f1fd1fe83bc12baaef6309d6",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@ -4761,7 +4761,7 @@
|
||||
"support": {
|
||||
"irc": "ircs://irc.libera.chat:6697/composer",
|
||||
"issues": "https://github.com/composer/semver/issues",
|
||||
"source": "https://github.com/composer/semver/tree/3.4.0"
|
||||
"source": "https://github.com/composer/semver/tree/3.4.2"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
@ -4777,7 +4777,7 @@
|
||||
"type": "tidelift"
|
||||
}
|
||||
],
|
||||
"time": "2023-08-31T09:50:34+00:00"
|
||||
"time": "2024-07-12T11:35:52+00:00"
|
||||
},
|
||||
{
|
||||
"name": "composer/xdebug-handler",
|
||||
|
@ -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;
|
||||
|
@ -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 = [];
|
||||
|
||||
@ -215,10 +215,6 @@ abstract class AbstractApiController
|
||||
return $this->page['response'];
|
||||
}
|
||||
|
||||
if (!\is_array($this->page['response']) && !\is_scalar($this->page['response'])) {
|
||||
$this->page['response'] = null;
|
||||
}
|
||||
|
||||
$data = [
|
||||
'success' => $this->page['success'],
|
||||
'errors' => $this->page['errors'],
|
||||
|
Loading…
Reference in New Issue
Block a user