links

lynx-like text mode web browser
git clone anongit@rnpnr.xyz:links.git
Log | Files | Refs | Feed | README | LICENSE

Commit: c8d2afc4e64c9783d77b94e52babc3e74f31e868
Parent: 4f9ce9dba2a2779ce32bf89b2cfb649ce2891ecd
Author: opask
Date:   Sat, 28 Jul 2018 19:37:07 -0600

fix mistake from commit e816017

Diffstat:
Mtypes.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/types.c b/types.c @@ -894,10 +894,10 @@ unsigned char *get_content_type_by_extension(unsigned char *url) for (; *ct && !end_of_dir(url, *ct); ct++) if (dir_sep(*ct)) fname = ct + 1; - if (!fname) + if (!fname) { if (is_in_list(e->ext, ext, extl)) return stracpy(e->ct); - else { + } else { int fnlen = 0; int x; while (fname[fnlen] && !end_of_dir(url, fname[fnlen])) fnlen++;