Patch to cvsweb?
Bryce Nesbitt (spam account)
bryce1 at obviously.com
Wed Nov 12 10:48:36 PST 2003
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 at freebsd.org mailing
>list for FreeBSD-CVSweb related discussion, TIA!)
>
>
More information about the freebsd-cvsweb
mailing list