[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: HTML in the repository displays as text in Firefox

From: <tereddy_at_gmail.com>
Date: 2006-11-10 21:33:09 CET

Hi Andy,
Thanks for the tip. I had tried the following before to no avail:
     svn propset svn:mime-type "text/html" *.html
This time it worked perfectly and I can browse the repository html pages
with Firefox.
Thanks! Tasha

On 11/9/06, Andy Levy <andy.levy@gmail.com> wrote:
>
> On 11/8/06, tereddy@gmail.com <tereddy@gmail.com> wrote:
> > We have a subversion repository (on Linux) with some very simple HTML
> pages.
> > The pages display fine when browsed to in IE (6) but in Firefox (1.5)
> they
> > appear as text. I tried playing around with the mime-type settings on
> > particular files, but that didn't help. I couldn't find any information
> > searching the web or the Subversion site. Any thoughts?
>
> Firefox decides how to handle pages served to it based on the
> content-type HTTP header, whereas IE usually guesses based on the
> filename extension.
>
> Set the svn:mime-type property to text/html on these HTML files and
> all will be well. This is a good habit to get into anyway - I try to
> mark every file I can in my repositories with the appropriate
> mime-type. It's extra metadata that costs almost nothing but can be
> valuable down the line.
>
Received on Fri Nov 10 21:33:56 2006

This is an archived mail posted to the Subversion Users mailing list.