Merge commit '7ce6c8aa13bd1e8eb5aa3fe267a0116ab43e9313'

This commit is contained in:
Dylan K. Taylor 2020-01-31 18:55:49 +00:00
commit 25ead18369
2 changed files with 14 additions and 11 deletions

View File

@ -129,7 +129,9 @@ class TimingsCommand extends VanillaCommand{
public function __construct(CommandSender $sender, string $host, string $agent, array $data){
parent::__construct([
["page" => "https://$host?upload=true", "extraOpts" => [
[
"page" => "https://$host?upload=true",
"extraOpts" => [
CURLOPT_HTTPHEADER => [
"User-Agent: $agent",
"Content-Type: application/x-www-form-urlencoded"
@ -138,7 +140,8 @@ class TimingsCommand extends VanillaCommand{
CURLOPT_POSTFIELDS => http_build_query($data),
CURLOPT_AUTOREFERER => false,
CURLOPT_FOLLOWLOCATION => false
]]
]
]
]);
$this->host = $host;
$this->storeLocal(self::TLS_KEY_SENDER, $sender);