From 6cfd37e60f0181916906de67c9f86cf54ab565c2 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Thu, 29 Sep 2011 15:31:54 +0000 Subject: Convert fetchers to nsurl. svn path=/trunk/netsurf/; revision=12910 --- content/fetchers/data.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'content/fetchers/data.c') diff --git a/content/fetchers/data.c b/content/fetchers/data.c index d9d7f768a..802b4f15e 100644 --- a/content/fetchers/data.c +++ b/content/fetchers/data.c @@ -75,7 +75,7 @@ static void fetch_data_finalise(lwc_string *scheme) curl_easy_cleanup(curl); } -static void *fetch_data_setup(struct fetch *parent_fetch, const char *url, +static void *fetch_data_setup(struct fetch *parent_fetch, nsurl *url, bool only_2xx, const char *post_urlenc, const struct fetch_multipart_data *post_multipart, const char **headers) @@ -86,7 +86,8 @@ static void *fetch_data_setup(struct fetch *parent_fetch, const char *url, return NULL; ctx->parent_fetch = parent_fetch; - ctx->url = strdup(url); + /* TODO: keep as nsurl to avoid copy */ + ctx->url = strdup(nsurl_access(url)); if (ctx->url == NULL) { free(ctx); -- cgit v1.2.3