summaryrefslogtreecommitdiff
path: root/content/fetchers
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2011-03-16 14:17:22 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2011-03-16 14:17:22 +0000
commit7f454dff4baa0fc3f3c1c3fe6ba136b7c5847539 (patch)
tree55a42e26cab1d91293c0784ac9b11e9b680b5a4a /content/fetchers
parent867a972c47b9198b699f0650d276ecc770ef0679 (diff)
downloadnetsurf-7f454dff4baa0fc3f3c1c3fe6ba136b7c5847539.tar.gz
netsurf-7f454dff4baa0fc3f3c1c3fe6ba136b7c5847539.tar.bz2
Add about:license --> about:licence redirect.
svn path=/trunk/netsurf/; revision=12076
Diffstat (limited to 'content/fetchers')
-rw-r--r--content/fetchers/about.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/content/fetchers/about.c b/content/fetchers/about.c
index 0e703f370..6bee817be 100644
--- a/content/fetchers/about.c
+++ b/content/fetchers/about.c
@@ -151,6 +151,17 @@ static bool fetch_about_licence_handler(struct fetch_about_context *ctx)
return true;
}
+static bool fetch_about_license_handler(struct fetch_about_context *ctx)
+{
+ /* content is going to return redirect to the noun */
+ fetch_set_http_code(ctx->fetchh, 302);
+
+ fetch_about_send_callback(FETCH_REDIRECT, ctx, "about:licence",
+ 0, FETCH_ERROR_NO_ERROR);
+
+ return true;
+}
+
static bool fetch_about_config_handler(struct fetch_about_context *ctx)
{
@@ -381,6 +392,7 @@ struct about_handlers {
struct about_handlers about_handler_list[] = {
{ "credits", fetch_about_credits_handler },
{ "licence", fetch_about_licence_handler },
+ { "license", fetch_about_license_handler },
{ "config", fetch_about_config_handler },
{ "Choices", fetch_about_choices_handler },
{ "testament", fetch_about_testament_handler },