summaryrefslogtreecommitdiff
path: root/content/fetchers/resource.c
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2011-09-29 15:31:54 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2011-09-29 15:31:54 +0000
commit6cfd37e60f0181916906de67c9f86cf54ab565c2 (patch)
treed68c3e909b2f1f4a1403c8af73fb68d0e33fc97e /content/fetchers/resource.c
parent828d8e0de8a643f74ddd019bd8afe663c65540e9 (diff)
downloadnetsurf-6cfd37e60f0181916906de67c9f86cf54ab565c2.tar.gz
netsurf-6cfd37e60f0181916906de67c9f86cf54ab565c2.tar.bz2
Convert fetchers to nsurl.
svn path=/trunk/netsurf/; revision=12910
Diffstat (limited to 'content/fetchers/resource.c')
-rw-r--r--content/fetchers/resource.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/content/fetchers/resource.c b/content/fetchers/resource.c
index 27194ef06..f217d6e53 100644
--- a/content/fetchers/resource.c
+++ b/content/fetchers/resource.c
@@ -164,7 +164,7 @@ static void fetch_resource_finalise(lwc_string *scheme)
/** callback to set up a resource fetch context. */
static void *
fetch_resource_setup(struct fetch *fetchh,
- const char *url,
+ nsurl *url,
bool only_2xx,
const char *post_urlenc,
const struct fetch_multipart_data *post_multipart,
@@ -177,7 +177,7 @@ fetch_resource_setup(struct fetch *fetchh,
if (ctx == NULL)
return NULL;
- url_get_components(url, &urlcomp);
+ url_get_components(nsurl_access(url), &urlcomp);
ctx->redirect_url = gui_get_resource_url(urlcomp.path);
if (ctx->redirect_url == NULL) {
@@ -186,7 +186,7 @@ fetch_resource_setup(struct fetch *fetchh,
ctx->handler = fetch_resource_redirect_handler;
}
- ctx->url = strdup(url);
+ ctx->url = strdup(nsurl_access(url));
url_destroy_components(&urlcomp);