Skip to content

Commit 836fb53

Browse files
run tests
1 parent 411b6de commit 836fb53

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Configuration/RequestMiddlewares.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,12 @@
1111
*/
1212

1313
return [
14-
'frontend' => [
14+
'backend' => [
1515
'dlf/page-view-proxy' => [
1616
'target' => \Kitodo\Dlf\Middleware\PageViewProxy::class,
1717
],
18+
],
19+
'frontend' => [
1820
'dlf/search-in-document' => [
1921
'target' => \Kitodo\Dlf\Middleware\SearchInDocument::class,
2022
'after' => [

Tests/Functional/Api/PageViewProxyTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ public function cannotAccessFileUrl(): void
3434
$response = $this->queryProxy([
3535
'url' => 'file:///etc/passwd',
3636
]);
37-
37+
var_dump($response);
38+
ob_flush();
3839
$this->assertEquals(400, $response->getStatusCode());
3940
}
4041

0 commit comments

Comments
 (0)