#! /bin/sh /usr/share/dpatch/dpatch-run ## content_type.dpatch by Joey Schulze ## ## All lines beginning with `## DP:' are a description of the patch. ## 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/*". @DPATCH@ diff -urNad lynx-cur-2.8.7dev9~/WWW/Library/Implementation/HTTP.c lynx-cur-2.8.7dev9/WWW/Library/Implementation/HTTP.c --- lynx-cur-2.8.7dev9~/WWW/Library/Implementation/HTTP.c 2008-04-28 02:10:25.000000000 +0200 +++ lynx-cur-2.8.7dev9/WWW/Library/Implementation/HTTP.c 2008-07-11 15:27:51.000000000 +0200 @@ -1044,6 +1044,16 @@ } 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: " : ", "),