diff options
author | Vincent Sanders <vince@netsurf-browser.org> | 2010-04-16 23:56:53 +0000 |
---|---|---|
committer | Vincent Sanders <vince@netsurf-browser.org> | 2010-04-16 23:56:53 +0000 |
commit | 448b0275ae4d62b31f64e3c6399d4fb5a045315c (patch) | |
tree | d42cf1938d8ef3497381b7a8858651044f58ea7c /content | |
parent | 01eb197f56ae69b0e4dba5d3475585d9cdda599c (diff) | |
download | netsurf-448b0275ae4d62b31f64e3c6399d4fb5a045315c.tar.gz netsurf-448b0275ae4d62b31f64e3c6399d4fb5a045315c.tar.bz2 |
Fix file: handling on risc os, gtk, windows and framebuffer frontends
svn path=/trunk/netsurf/; revision=10419
Diffstat (limited to 'content')
-rw-r--r-- | content/fetchers/fetch_curl.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/content/fetchers/fetch_curl.c b/content/fetchers/fetch_curl.c index e3f3d492b..aad0b603c 100644 --- a/content/fetchers/fetch_curl.c +++ b/content/fetchers/fetch_curl.c @@ -1155,8 +1155,7 @@ bool fetch_curl_process_headers(struct curl_fetch_info *f) /* find MIME type from filetype for local files */ if (strncmp(f->url, FILE_SCHEME_PREFIX, FILE_SCHEME_PREFIX_LEN) == 0) { struct stat s; - char *url_path = curl_unescape(f->url + FILE_SCHEME_PREFIX_LEN, - (int) strlen(f->url + FILE_SCHEME_PREFIX_LEN)); + char *url_path = url_to_path(f->url); LOG(("Obtaining mime type for file %s", url_path)); @@ -1209,7 +1208,7 @@ bool fetch_curl_process_headers(struct curl_fetch_info *f) } if (url_path != NULL) - curl_free(url_path); + free(url_path); } if (f->abort) |