diff options
-rw-r--r-- | _test/tests/inc/httpclient_http.test.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/_test/tests/inc/httpclient_http.test.php b/_test/tests/inc/httpclient_http.test.php index c3ee182dc..9959a1f06 100644 --- a/_test/tests/inc/httpclient_http.test.php +++ b/_test/tests/inc/httpclient_http.test.php @@ -127,9 +127,8 @@ class httpclient_http_test extends DokuWikiTest { $http->max_bodysize_abort = false; $data = $http->get($this->server.'/stream/30'); $this->assertFalse($data === false, 'HTTP response'); - /* the current implementation will read in max_bodysize blocks, - and aborts if the response is larger, thus a limit of 2*max_bodysize */ - $this->assertLessThanOrEqual(500,strlen($data)); + /* should read no more than max_bodysize+1 */ + $this->assertLessThanOrEqual(251,strlen($data)); } /** |