Re: Bad MIMETYPE configuration for .htm files accessed via SVN HTTP
From: Ryan Schmidt <subversion-2009d_at_ryandesign.com>
Date: Wed, 25 Nov 2009 07:45:26 -0600
On Nov 25, 2009, at 07:19, vishwanath ramachandran_at_honeywell.com wrote:
> When accessing an .htm file stored in subversion, the server sends back the content with the text/plain MIMETYPE. The browser is then showing the .htm file as a plain/text file. If I open the same link in IE, it will work as expected, but in Firefox. Actually, it is not a problem with Firefox. The MIMETYPE that is sent by the HTTP server clearly specifies to the browser that it should decode the sent content (the htm file in this case) as a plain text, which Firefox does. IE apparently overrides the HTTP MIMETYPEs with a mimetype contained in the file itself. According to W3C HTTP standards, the HTTP requests mimetypes shall always take precedence.
As you already know, you need to set the svn:mime-type property of every .htm and .html file in your repository to text/html for this to work as you want. See my reply to your previous email on this subject.
> I have added the svn-mime type to video file e.g. (abc.html) svn:mime-type application/x-shockwave-flash, but it still it does not play. When I don’t embed as an object controller (video will be played continuously, we can’t stop, pause, there is no option to stop, pause), the file plays in Firefox
If you've set the file's svn:mime-type property correctly, and committed that to the repository, I don't know why it wouldn't work.
------------------------------------------------------
Please start new threads on the <users_at_subversion.apache.org> mailing list.
|
This is an archived mail posted to the Subversion Users mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.