summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrançois Revel <mmu_man@netsurf-browser.org>2011-05-14 00:17:25 +0000
committerFrançois Revel <mmu_man@netsurf-browser.org>2011-05-14 00:17:25 +0000
commit069a501c4d8ecb53ba2bacb2d53dca37aafdb693 (patch)
treebda83ab4aff6f449a50d0504901fe0a5c2cc2df9
parenteafcb685c4abcdf242141a8e13b6bfee1fc038b8 (diff)
downloadnetsurf-069a501c4d8ecb53ba2bacb2d53dca37aafdb693.tar.gz
netsurf-069a501c4d8ecb53ba2bacb2d53dca37aafdb693.tar.bz2
Add an about:logo redirect to resource:netsurf.png.
svn path=/trunk/netsurf/; revision=12407
-rw-r--r--content/fetchers/about.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/content/fetchers/about.c b/content/fetchers/about.c
index 8a396898c..59461ee9f 100644
--- a/content/fetchers/about.c
+++ b/content/fetchers/about.c
@@ -145,6 +145,7 @@ static bool fetch_about_credits_handler(struct fetch_about_context *ctx)
return true;
}
+
static bool fetch_about_licence_handler(struct fetch_about_context *ctx)
{
/* content is going to return redirect */
@@ -373,6 +374,17 @@ fetch_about_testament_handler_aborted:
return false;
}
+static bool fetch_about_logo_handler(struct fetch_about_context *ctx)
+{
+ /* content is going to return redirect */
+ fetch_set_http_code(ctx->fetchh, 302);
+
+ fetch_about_send_callback(FETCH_REDIRECT, ctx, "resource:netsurf.png",
+ 0, FETCH_ERROR_NO_ERROR);
+
+ return true;
+}
+
/* Forward declaration because this handler requires the handler table. */
static bool fetch_about_about_handler(struct fetch_about_context *ctx);
@@ -390,6 +402,7 @@ struct about_handlers about_handler_list[] = {
{ "Choices", fetch_about_choices_handler, false },
{ "testament", fetch_about_testament_handler, false },
{ "about", fetch_about_about_handler, true },
+ { "logo", fetch_about_logo_handler, true },
{ "blank", fetch_about_blank_handler, true } /* The default */
};