Date: Wed, 12 Nov 2003 13:48:34 -0500 From: "Bryce Nesbitt (spam account)" <bryce1@obviously.com> To: =?ISO-8859-1?Q?Ville_Skytt=E4?= <scop@FreeBSD.org> Cc: freebsd-cvsweb@freebsd.org Subject: Re: Patch to cvsweb? Message-ID: <3FB28082.6070707@obviously.com> In-Reply-To: <1068661352.4763.72.camel@bobcat.mine.nu> References: <3FB23C1F.6040502@obviously.com> <1068661352.4763.72.camel@bobcat.mine.nu>
next in thread | previous in thread | raw e-mail | index | archive | help
I am working with CVS HEAD. My modified version is at: http://www.obviously.com/test/cvsweb.cgi/MassGIS/ I implemented an external diff utility. In this case, it compares binary application files stored inside a .zip archive. What I found in the process was a lot of hassle with the mime types. Several places the $mimetype does not match the current file. The moment I added: %MTYPES = ( "gif" => "image/gif", "zip" -> "application/zup", ); cvsweb wanted to display compressed .zip files "as text". Give it a try, this is easy to reproduce. Some files are inherently "viewable" in a web browser, and some have to be downloaded to be useful. With CVS HEAD that distinction is a bit confusing both for the user, and in the code base. -Bryce Ville Skyttä wrote: >On Wed, 2003-11-12 at 15:56, Bryce Nesbitt wrote: > > > >>Would you accept a patch to cvsweb related to proper mime types >>for downloading zip files? >> >> > >Some work with MIME types has been lately done to cvsweb, be sure to >check out CVS HEAD or the new beta, 2.9.1 (I assume that is not the >version you're talking about). The MIME type support is now pretty >good, however it exposes other annoying things that need to be taken >care of before 3.0. > >(And if possible, please also use the freebsd-cvsweb@freebsd.org mailing >list for FreeBSD-CVSweb related discussion, TIA!) > >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3FB28082.6070707>