mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-13 06:55:29 +00:00
Merge commit '7ce6c8aa13bd1e8eb5aa3fe267a0116ab43e9313'
This commit is contained in:
commit
25ead18369
@ -83,7 +83,7 @@ abstract class Command{
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string[] $args
|
* @param string[] $args
|
||||||
*
|
*
|
||||||
* @return mixed
|
* @return mixed
|
||||||
* @throws CommandException
|
* @throws CommandException
|
||||||
|
@ -129,16 +129,19 @@ class TimingsCommand extends VanillaCommand{
|
|||||||
|
|
||||||
public function __construct(CommandSender $sender, string $host, string $agent, array $data){
|
public function __construct(CommandSender $sender, string $host, string $agent, array $data){
|
||||||
parent::__construct([
|
parent::__construct([
|
||||||
["page" => "https://$host?upload=true", "extraOpts" => [
|
[
|
||||||
CURLOPT_HTTPHEADER => [
|
"page" => "https://$host?upload=true",
|
||||||
"User-Agent: $agent",
|
"extraOpts" => [
|
||||||
"Content-Type: application/x-www-form-urlencoded"
|
CURLOPT_HTTPHEADER => [
|
||||||
],
|
"User-Agent: $agent",
|
||||||
CURLOPT_POST => true,
|
"Content-Type: application/x-www-form-urlencoded"
|
||||||
CURLOPT_POSTFIELDS => http_build_query($data),
|
],
|
||||||
CURLOPT_AUTOREFERER => false,
|
CURLOPT_POST => true,
|
||||||
CURLOPT_FOLLOWLOCATION => false
|
CURLOPT_POSTFIELDS => http_build_query($data),
|
||||||
]]
|
CURLOPT_AUTOREFERER => false,
|
||||||
|
CURLOPT_FOLLOWLOCATION => false
|
||||||
|
]
|
||||||
|
]
|
||||||
]);
|
]);
|
||||||
$this->host = $host;
|
$this->host = $host;
|
||||||
$this->storeLocal(self::TLS_KEY_SENDER, $sender);
|
$this->storeLocal(self::TLS_KEY_SENDER, $sender);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user