summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjcid <devnull@localhost>2008-02-29 18:51:30 +0100
committerjcid <devnull@localhost>2008-02-29 18:51:30 +0100
commitba8b8189a6d6f0106bead3811bf7ecf2f61fc9e2 (patch)
treec6a6a1b578e671966a9f5edafbed8f6c9896890b
parent1eb0d3928b5784e353d25aa91c19a67f5c7dcc17 (diff)
+ Added a MSG_WARN to non-png URLs served as png.
-rw-r--r--src/png.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/png.c b/src/png.c
index d6a97f56..0354485e 100644
--- a/src/png.c
+++ b/src/png.c
@@ -362,6 +362,7 @@ static void Png_callback(int Op, CacheClient_t *Client)
/* check the image signature - DON'T update ipbufstart! */
if (!png_check_sig(png->ipbuf, DATASIZE)) {
/* you lied to me about it being a PNG image */
+ MSG_WARN("\"%s\" is not a PNG file.\n", URL_STR(png->url));
png->state = IS_finished;
break;
}