Skip to content

Commit 3d91c94

Browse files
committed
Return null after readfile
1 parent f60e62e commit 3d91c94

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

phpserver/router.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,8 @@
100100
if ($type) {
101101
header("Content-Type: $type");
102102
}
103-
return readfile($file);
103+
readfile($file);
104+
return;
104105
} else {
105106
$debug('file does not exist');
106107
if (strpos($route, 'static/') === 0) {

0 commit comments

Comments
 (0)