summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--init.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/init.php b/init.php
index 5bb7a9a..8171189 100644
--- a/init.php
+++ b/init.php
@@ -202,14 +202,13 @@ class Api_Resize_Media extends Plugin {
imagedestroy($img);
} else {
- header("Content-type: text/html");
+ header("Content-type: text/plain");
http_response_code(400);
- print "<h1>Proxy request failed.</h1>";
- print "<p>Fetch error $fetch_last_error ($fetch_last_error_code)</p>";
- print "<p>URL: $url</p>";
- print "<textarea cols='80' rows='25'>" . htmlspecialchars($fetch_last_error_content) . "</textarea>";
+ print "Proxy request failed.\n".
+ "Fetch error $fetch_last_error ($fetch_last_error_code)\n".
+ "Requested URL: $url";
}
}
}