aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/inc/HTTP/HTTPClient.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2023-01-31 12:11:59 +0100
committerAndreas Gohr <andi@splitbrain.org>2023-01-31 12:11:59 +0100
commitd9a7912a64aabd333b9fd90f73739a038e465dce (patch)
tree0e189da634c04cba91079b0bbc0266b0cd3fbd68 /inc/HTTP/HTTPClient.php
parentec88e8371b4a1e348f01d0545d07fc53305278c1 (diff)
downloaddokuwiki-d9a7912a64aabd333b9fd90f73739a038e465dce.tar.gz
dokuwiki-d9a7912a64aabd333b9fd90f73739a038e465dce.zip
use httpbingo for HTPP tests
This service is based on httpbin-go which seems to be better maintained and should be easy to set up for ourselves if needed. This also fixes a warning when the client is reused with the max_bodysize mechanism
Diffstat (limited to 'inc/HTTP/HTTPClient.php')
-rw-r--r--inc/HTTP/HTTPClient.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/inc/HTTP/HTTPClient.php b/inc/HTTP/HTTPClient.php
index ee8e7e7b3..963091856 100644
--- a/inc/HTTP/HTTPClient.php
+++ b/inc/HTTP/HTTPClient.php
@@ -174,6 +174,7 @@ class HTTPClient {
// don't accept gzip if truncated bodies might occur
if($this->max_bodysize &&
!$this->max_bodysize_abort &&
+ isset($this->headers['Accept-encoding']) &&
$this->headers['Accept-encoding'] == 'gzip'){
unset($this->headers['Accept-encoding']);
}