summaryrefslogtreecommitdiff
path: root/desktop/download.c
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2011-09-28 14:21:35 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2011-09-28 14:21:35 +0000
commit57547f7b1eef1f0d6384993cc60a33733b177a9e (patch)
tree1cdae799f784d8977f5c539786c88acafa41cfb7 /desktop/download.c
parent861f88aa43cebd6dbfd0ecde175a4e81b995c2a1 (diff)
downloadnetsurf-57547f7b1eef1f0d6384993cc60a33733b177a9e.tar.gz
netsurf-57547f7b1eef1f0d6384993cc60a33733b177a9e.tar.bz2
Make llcache_handle_get_url return a nsurl.
svn path=/trunk/netsurf/; revision=12905
Diffstat (limited to 'desktop/download.c')
-rw-r--r--desktop/download.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/desktop/download.c b/desktop/download.c
index b0ca700d0..fd91ed396 100644
--- a/desktop/download.c
+++ b/desktop/download.c
@@ -146,7 +146,8 @@ static nserror download_context_process_headers(download_context *ctx)
ctx->total_length = length;
if (ctx->filename == NULL) {
ctx->filename = download_default_filename(
- llcache_handle_get_url(ctx->llcache));
+ nsurl_access(
+ llcache_handle_get_url(ctx->llcache)));
}
http_content_type_destroy(content_type);
@@ -287,7 +288,7 @@ void download_context_abort(download_context *ctx)
/* See download.h for documentation */
const char *download_context_get_url(const download_context *ctx)
{
- return llcache_handle_get_url(ctx->llcache);
+ return nsurl_access(llcache_handle_get_url(ctx->llcache));
}
/* See download.h for documentation */