aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/inc/HTTP/HTTPClient.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2023-08-29 19:51:36 +0200
committerAndreas Gohr <andi@splitbrain.org>2023-08-29 19:51:36 +0200
commit51bc25345d6e90747a7ad237fc1568630d1528af (patch)
treeb4eee5da861445da2114b0f3569c956980c235cb /inc/HTTP/HTTPClient.php
parent24870174d2ee45460ba6bcfe5f5a0ae94715efd7 (diff)
downloaddokuwiki-51bc25345d6e90747a7ad237fc1568630d1528af.tar.gz
dokuwiki-51bc25345d6e90747a7ad237fc1568630d1528af.zip
fix codesniffer violations
Diffstat (limited to 'inc/HTTP/HTTPClient.php')
-rw-r--r--inc/HTTP/HTTPClient.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/inc/HTTP/HTTPClient.php b/inc/HTTP/HTTPClient.php
index e4ee91ef5..1ecc8fe26 100644
--- a/inc/HTTP/HTTPClient.php
+++ b/inc/HTTP/HTTPClient.php
@@ -423,7 +423,10 @@ class HTTPClient
$this->readData($socket, 2, 'chunk'); // read trailing \r\n
}
} while ($chunk_size && !$abort);
- } elseif (isset($this->resp_headers['content-length']) && !isset($this->resp_headers['transfer-encoding'])) {
+ } elseif (
+ isset($this->resp_headers['content-length']) &&
+ !isset($this->resp_headers['transfer-encoding'])
+ ) {
/* RFC 2616
* If a message is received with both a Transfer-Encoding header field and a Content-Length
* header field, the latter MUST be ignored.
@@ -519,7 +522,8 @@ class HTTPClient
$request = "CONNECT {$requestinfo['host']}:{$requestinfo['port']} HTTP/1.0" . HTTP_NL;
$request .= "Host: {$requestinfo['host']}" . HTTP_NL;
if ($this->proxy_user) {
- $request .= 'Proxy-Authorization: Basic ' . base64_encode($this->proxy_user . ':' . $this->proxy_pass) . HTTP_NL;
+ $request .= 'Proxy-Authorization: Basic ' .
+ base64_encode($this->proxy_user . ':' . $this->proxy_pass) . HTTP_NL;
}
$request .= HTTP_NL;