mirror of
https://github.com/danog/dns-over-https.git
synced 2024-11-26 11:54:44 +01:00
merge
This commit is contained in:
commit
aa40bb7ddd
@ -3,10 +3,9 @@ sudo: false
|
||||
language: php
|
||||
|
||||
php:
|
||||
- 7.0
|
||||
- 7.1
|
||||
- 7.2
|
||||
- 7.3
|
||||
# - 7.2
|
||||
# - 7.3
|
||||
- 7.4
|
||||
- nightly
|
||||
|
||||
matrix:
|
||||
|
@ -70,7 +70,7 @@ final class HttpsSocket extends Socket
|
||||
$request->setBody($data);
|
||||
$request->setHeader('content-type', 'application/dns-message');
|
||||
$request->setHeader('accept', 'application/dns-message');
|
||||
$request->setHeader('content-length', strlen($data));
|
||||
$request->setHeader('content-length', \strlen($data));
|
||||
$request->setHeaders($this->nameserver->getHeaders());
|
||||
break;
|
||||
case Nameserver::GOOGLE_JSON:
|
||||
|
@ -146,7 +146,7 @@ abstract class Socket
|
||||
$message = "Unexpected error during resolution: ".$exception->getMessage();
|
||||
$exception = new DnsException($message, 0, $exception);
|
||||
}
|
||||
|
||||
|
||||
$pending = $this->pending;
|
||||
$this->pending = [];
|
||||
|
||||
|
@ -153,7 +153,7 @@ final class Rfc8484StubResolver implements Resolver
|
||||
foreach ($reason->getReasons() as $reason) {
|
||||
$reasons []= $reason->getMessage();
|
||||
}
|
||||
$error .= " (".implode(", ", $reasons).")";
|
||||
$error .= " (".\implode(", ", $reasons).")";
|
||||
}
|
||||
$errors[] = $error;
|
||||
}
|
||||
@ -263,7 +263,7 @@ final class Rfc8484StubResolver implements Resolver
|
||||
$attemptDescription = [];
|
||||
|
||||
$exceptions = [];
|
||||
|
||||
|
||||
while ($attempt < $attempts) {
|
||||
try {
|
||||
$attemptDescription[] = $nameserver;
|
||||
|
Loading…
Reference in New Issue
Block a user