StaticController: Fix imgAction() not returning the correct content type for svg
This commit is contained in:
parent
d527ac2717
commit
c6f2783d2d
|
@ -71,6 +71,9 @@ class StaticController extends Controller
|
|||
}
|
||||
if (preg_match('/\.([a-z]+)$/i', $file, $m)) {
|
||||
$extension = $m[1];
|
||||
if ($extension === 'svg') {
|
||||
$extension = 'svg+xml';
|
||||
}
|
||||
} else {
|
||||
$extension = 'fixme';
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue