mirror of
https://codeberg.org/vlw/blobber.git
synced 2025-09-14 16:43:42 +02:00
Compare commits
No commits in common. "master" and "0.1.0" have entirely different histories.
1 changed files with 0 additions and 2 deletions
|
@ -46,11 +46,9 @@
|
||||||
|
|
||||||
// Return HTML page if supported by client
|
// Return HTML page if supported by client
|
||||||
if ($_SERVER["HTTP_ACCEPT"] === "*/*" || strpos($_SERVER["HTTP_ACCEPT"] ?? "", "text/html") !== false) {
|
if ($_SERVER["HTTP_ACCEPT"] === "*/*" || strpos($_SERVER["HTTP_ACCEPT"] ?? "", "text/html") !== false) {
|
||||||
header("Content-Type: text/html", true);
|
|
||||||
die(sprintf(file_get_contents(__DIR__ . "/error.html"), $error->value, $error->name));
|
die(sprintf(file_get_contents(__DIR__ . "/error.html"), $error->value, $error->name));
|
||||||
}
|
}
|
||||||
|
|
||||||
header("Content-Type: text/plain", true);
|
|
||||||
die($error->name);
|
die($error->name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue