diff options
author | Tatsuya Kinoshita <tats@vega.ocn.ne.jp> | 2011-05-04 07:23:02 +0000 |
---|---|---|
committer | Tatsuya Kinoshita <tats@vega.ocn.ne.jp> | 2011-05-04 07:23:02 +0000 |
commit | 6db339b3d7a391f196e7c4b725a4ed0bd00f31cf (patch) | |
tree | 7d6fed976b72694d61fc595a745d394e1cd6e1a5 /mailcap.c | |
parent | Adding upstream version 0.5.1 (diff) | |
download | w3m-6db339b3d7a391f196e7c4b725a4ed0bd00f31cf.tar.gz w3m-6db339b3d7a391f196e7c4b725a4ed0bd00f31cf.zip |
Adding upstream version 0.5.2upstream/0.5.2
Diffstat (limited to '')
-rw-r--r-- | mailcap.c | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -1,4 +1,4 @@ -/* $Id: mailcap.c,v 1.12 2003/01/17 17:06:04 ukai Exp $ */ +/* $Id: mailcap.c,v 1.13 2006/08/07 03:10:26 ukai Exp $ */ #include "fm.h" #include "myctype.h" #include <stdio.h> @@ -252,7 +252,7 @@ acceptableMimeTypes() /* generate acceptable media types */ l = newTextList(); mhash = newHash_si(16); /* XXX */ - pushText(l, "text"); + /* pushText(l, "text"); */ putHash_si(mhash, "text", 1); pushText(l, "image"); putHash_si(mhash, "image", 1); @@ -272,11 +272,10 @@ acceptableMimeTypes() } } } + types = Strnew(); + Strcat_charp(types, "text/html, text/*;q=0.5"); while ((p = popText(l)) != NULL) { - if (types == NULL) - types = Strnew(); - else - Strcat_charp(types, ", "); + Strcat_charp(types, ", "); Strcat_charp(types, p); Strcat_charp(types, "/*"); } |