diff options
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); } } |