From c313524998377db92e5387d209e1ea79fbc30ba6 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Wed, 29 Jun 2016 23:06:53 +0100 Subject: reduce curl usage to fetcher, url unescaping and time parsing --- frontends/riscos/download.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'frontends/riscos/download.c') diff --git a/frontends/riscos/download.c b/frontends/riscos/download.c index 7dd61b7b4..1a0249e20 100644 --- a/frontends/riscos/download.c +++ b/frontends/riscos/download.c @@ -33,7 +33,6 @@ #include #include #include -#include #include #include "oslib/mimemap.h" @@ -53,6 +52,7 @@ #include "utils/utf8.h" #include "utils/utils.h" #include "utils/string.h" +#include "utils/url.h" #include "utils/corestrings.h" #include "netsurf/download.h" #include "desktop/download.h" @@ -239,11 +239,11 @@ static nserror download_ro_filetype(download_context *ctx, bits *ftype_out) lwc_string *path = nsurl_get_component(url, NSURL_PATH); if (path != NULL && lwc_string_length(path) != 0) { char *raw_path; - raw_path = curl_unescape(lwc_string_data(path), - lwc_string_length(path)); - if (raw_path != NULL) { + if (url_unescape(lwc_string_data(path), + lwc_string_length(path), + &raw_path) == NSERROR_OK) { ftype = ro_filetype_from_unix_path(raw_path); - curl_free(raw_path); + free(raw_path); } } } -- cgit v1.2.3