diff options
author | Vincent Sanders <vince@netsurf-browser.org> | 2011-03-12 22:38:00 +0000 |
---|---|---|
committer | Vincent Sanders <vince@netsurf-browser.org> | 2011-03-12 22:38:00 +0000 |
commit | 01d4be82c4af7606ed10625bc81489246fe9e0d0 (patch) | |
tree | a6d54813a20829eb8a071a06c6a803752d7a754d /content/fetchers | |
parent | ece6cebb68313d571fd3455e7401d90d527dffb7 (diff) | |
download | netsurf-01d4be82c4af7606ed10625bc81489246fe9e0d0.tar.gz netsurf-01d4be82c4af7606ed10625bc81489246fe9e0d0.tar.bz2 |
fix about:licence
svn path=/trunk/netsurf/; revision=11996
Diffstat (limited to 'content/fetchers')
-rw-r--r-- | content/fetchers/about.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/content/fetchers/about.c b/content/fetchers/about.c index 9def04a2c..046c28a63 100644 --- a/content/fetchers/about.c +++ b/content/fetchers/about.c @@ -139,6 +139,18 @@ 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 */ + fetch_set_http_code(ctx->fetchh, 302); + + fetch_about_send_callback(FETCH_REDIRECT, ctx, "resource:licence.html", + 0, FETCH_ERROR_NO_ERROR); + + return true; +} + + static bool fetch_about_config_handler(struct fetch_about_context *ctx) { char buffer[1024]; @@ -261,6 +273,7 @@ struct about_handlers { struct about_handlers about_handler_list[] = { { "credits", fetch_about_credits_handler }, + { "licence", fetch_about_licence_handler }, { "config", fetch_about_config_handler }, { "Choices", fetch_about_choices_handler }, { "blank", fetch_about_blank_handler } /* The default */ |