Explicitly specify status code 200 as response code
Potentially fixes https://github.com/owncloud/core/issues/17586
This commit is contained in:
parent
840a2a7788
commit
f3561e2349
|
@ -61,6 +61,7 @@ class DummyGetResponsePlugin extends \Sabre\DAV\ServerPlugin {
|
|||
fwrite($stream, $string);
|
||||
rewind($stream);
|
||||
|
||||
$response->setStatus(200);
|
||||
$response->setBody($stream);
|
||||
|
||||
return false;
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue