We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df6d6a0 commit ebac9cfCopy full SHA for ebac9cf
resources/lib/UnitySite.php
@@ -75,7 +75,9 @@ public static function forbidden($message)
75
public static function shutdown()
76
{
77
if (!is_null($e = error_get_last())) {
78
- self::headerResponseCode(500, "internal server error");
+ if (!headers_sent()) {
79
+ self::headerResponseCode(500, "internal server error");
80
+ }
81
$errorid = uniqid();
82
$e["unity_error_id"] = $errorid;
83
self::errorLog("internal server error", json_encode($e));
0 commit comments