Package: lynx Version: 2.8.5-2sarge2 Severity: wishlist When I try to view http://www.debian.org/events/2006/0624-froscon content negotiation is in place. Lynx requests a file of type text/html, [..], text/*. However, text/calendar and text/html are available on www.debian.org and Apache seems to prefer sending the calendar file instead of the HTML file. The calendar file, though, can only be displayed in a pager but not rendered properly.
It may be a good idea to adjust the Accept: HTTP header) a little bit, so that text/* is requested with less priority than text/html. text/html means priority 1.00, so you can say text/*;q=0.5 to drop the priority of other text/* mime types that haven't been listed on their own. Unfortunately, I haven't been able to find such a setting in the configuration file and haven't had enough energy to dig out where Lynx is getting the information from. It is clearly calculated. Hence, the attached patch is only a kludge or workaround but not a proper solution. Maybe you, or probably upstream, knows how to adjust the behaviour best. Please note, that when trying the above URL, I have adjusted the main web server to consider calendar files of less priority already. So for trying you'll have to connect to one of the mirror servers. Regards, Joey -- WARNING: Do not execute! This call violates patent DE10108564. http://www.elug.de/projekte/patent-party/patente/DE10108564 wget -O patinfo-`date +"%Y%m%d"`.html http://patinfo.ffii.org/ Please always Cc to me when replying to me on the lists.
#! /bin/sh /usr/share/dpatch/dpatch-run ## 06_content-type.dpatch by Joey Schulze <[EMAIL PROTECTED]> ## ## 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: " : ", "),