From 57547f7b1eef1f0d6384993cc60a33733b177a9e Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Wed, 28 Sep 2011 14:21:35 +0000 Subject: Make llcache_handle_get_url return a nsurl. svn path=/trunk/netsurf/; revision=12905 --- desktop/download.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'desktop/download.c') 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 */ -- cgit v1.2.3