Explicitly specify status code 200 as response code

Potentially fixes https://github.com/owncloud/core/issues/17586
This commit is contained in:
Lukas Reschke 2015-08-25 18:07:40 +02:00
parent 840a2a7788
commit f3561e2349
2 changed files with 5 additions and 0 deletions

View File

@ -61,6 +61,7 @@ class DummyGetResponsePlugin extends \Sabre\DAV\ServerPlugin {
fwrite($stream, $string);
rewind($stream);
$response->setStatus(200);
$response->setBody($stream);
return false;

View File

@ -59,6 +59,10 @@ class DummyGetResponsePluginTest extends TestCase {
$response
->expects($this->once())
->method('setBody');
$response
->expects($this->once())
->method('setStatus')
->with(200);
$this->assertSame(false, $this->dummyGetResponsePlugin->httpGet($request, $response));
}