diff options
author | Tatsuya Kinoshita <tats@vega.ocn.ne.jp> | 2011-05-04 07:21:03 +0000 |
---|---|---|
committer | Tatsuya Kinoshita <tats@vega.ocn.ne.jp> | 2011-05-04 07:21:03 +0000 |
commit | 2d9ece8bcb1c76c3d6990b83b00019e171c759d7 (patch) | |
tree | b29dca9667fe151b2f01262c5907281ad2c7e3e8 /mailcap.c | |
parent | Releasing debian version 0.5.1-4 (diff) | |
download | w3m-2d9ece8bcb1c76c3d6990b83b00019e171c759d7.tar.gz w3m-2d9ece8bcb1c76c3d6990b83b00019e171c759d7.zip |
Releasing debian version 0.5.1-5debian/0.5.1-5
Diffstat (limited to 'mailcap.c')
-rw-r--r-- | mailcap.c | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -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, "/*"); } |