diff options
author | James Bursa <james@netsurf-browser.org> | 2003-12-26 00:17:55 +0000 |
---|---|---|
committer | James Bursa <james@netsurf-browser.org> | 2003-12-26 00:17:55 +0000 |
commit | f1b59814f8da2f3e235d47adfb332edf8a093b31 (patch) | |
tree | 760327fafeb70a0ed342abba3455da00a684eabc /content/fetch.c | |
parent | 3b4de07169777f6f820f08ac1422e9af901b3ee2 (diff) | |
download | netsurf-f1b59814f8da2f3e235d47adfb332edf8a093b31.tar.gz netsurf-f1b59814f8da2f3e235d47adfb332edf8a093b31.tar.bz2 |
[project @ 2003-12-26 00:17:55 by bursa]
New url_join using liburi, <base href=...>.
svn path=/import/netsurf/; revision=441
Diffstat (limited to 'content/fetch.c')
-rw-r--r-- | content/fetch.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/content/fetch.c b/content/fetch.c index f03cfc615..f7197a7aa 100644 --- a/content/fetch.c +++ b/content/fetch.c @@ -602,6 +602,11 @@ bool fetch_process_headers(struct fetch *f) url_path = curl_unescape(f->url + 8, (int) strlen(f->url) - 8); type = fetch_filetype(url_path); curl_free(url_path); + } else if (strncmp(f->url, "file:/", 6) == 0) { + char *url_path; + url_path = curl_unescape(f->url + 6, (int) strlen(f->url) - 6); + type = fetch_filetype(url_path); + curl_free(url_path); } } |