#! /bin/sh /usr/share/dpatch/dpatch-run ## 06_content-type.dpatch by Joey Schulze ## ## DP: Patch to force text/html and other text/* content-types to be of a ## DP: higher priority than the unnamed ones which are only specified ## DP: literally by adding "text/*". diff -u -p -Nr --exclude CVS lynx-2.8.5.orig/WWW/Library/Implementation/HTTP.c lynx-2.8.5/WWW/Library/Implementation/HTTP.c --- lynx-2.8.5.orig/WWW/Library/Implementation/HTTP.c 2006-06-18 16:23:55.000000000 +0200 +++ lynx-2.8.5/WWW/Library/Implementation/HTTP.c 2006-06-18 16:24:10.000000000 +0200 @@ -710,6 +710,15 @@ use_tunnel: } else { temp[0] = '\0'; } + /* + * This is a kludge to force text/html and other text/* + * content-types to be of a higher priority than the + * unnamed ones which are only specified literally by + * adding "text/*". + */ + if (!strcmp (HTAtom_name(pres->rep), "text/*")) + sprintf(temp, ";q=%4.3f", 0.5); + HTSprintf0(&linebuf, "%s%s%s", (first_Accept ? "Accept: " : ", "),