summaryrefslogtreecommitdiff
path: root/frontends/riscos/download.c
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2016-06-29 23:06:53 +0100
committerVincent Sanders <vince@kyllikki.org>2016-06-29 23:06:53 +0100
commitc313524998377db92e5387d209e1ea79fbc30ba6 (patch)
tree2d227e6d617fc98fbc4b0ad36a7870a63cc3f900 /frontends/riscos/download.c
parentc523bb47a0c884f58ab267eb9ad699ccbed907d5 (diff)
downloadnetsurf-c313524998377db92e5387d209e1ea79fbc30ba6.tar.gz
netsurf-c313524998377db92e5387d209e1ea79fbc30ba6.tar.bz2
reduce curl usage to fetcher, url unescaping and time parsing
Diffstat (limited to 'frontends/riscos/download.c')
-rw-r--r--frontends/riscos/download.c10
1 files changed, 5 insertions, 5 deletions
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 <assert.h>
#include <string.h>
#include <time.h>
-#include <curl/curl.h>
#include <libwapcaplet/libwapcaplet.h>
#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);
}
}
}