Skip to content
Snippets Groups Projects
Commit 08118f51 authored by Tom N Harris's avatar Tom N Harris
Browse files

Adjust unit test to reflect desired behavior of max_bodysize

parent a6ba0720
No related branches found
No related tags found
No related merge requests found
......@@ -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));
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment