Re: [PATCH] gitweb: use correct mime type even if filename has multiple dots.
- From
Junio C Hamano <junkio@cox.net>
- Date
- Sep 17, 2006, 09:07 UTC
- Message-ID
- <7vvenm6euq.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <eej2i1$97c$1@sea.gmane.org>
Jakub Narebski <jnareb@gmail.com> writes:
Show 6 quoted lines
> Is it really useful? Usually the suffix in mime.types doesn't contain dot > itself. Besides, to be said we need correct mimetype only for files which > can be displayed in browser (HTML, XHTML, images: png, gif, jpeg, perhaps > XML). All other can get generic mimetype, i.e. application/octet-stream for > binary files (to be saved) and text/plain for text file (to be displayer > as-is in browser).
Sorry, I do not think that is quite correct. The browser can launch an appropriate application on the downloaded file, as long as you send the data labelled with proper mimetype. If you send out application/octet-stream, of course that would not work.
Having said that, I am not sure what special things Martin wanted to do with x.8.html that is different from y.html, so maybe discussing the patch does not have merit at all.