summaryrefslogtreecommitdiff
path: root/desktop/download.c
diff options
context:
space:
mode:
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 */