diff options
author | Andreas Gohr <andi@splitbrain.org> | 2023-01-31 12:11:59 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2023-01-31 12:11:59 +0100 |
commit | d9a7912a64aabd333b9fd90f73739a038e465dce (patch) | |
tree | 0e189da634c04cba91079b0bbc0266b0cd3fbd68 /inc/HTTP/HTTPClient.php | |
parent | ec88e8371b4a1e348f01d0545d07fc53305278c1 (diff) | |
download | dokuwiki-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.php | 1 |
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']); } |