Tuesday, September 30, 2008

Rendering a html file which is in svn as text/html

I'm sure people have come across this issue before. The solution for it is simple though.

If you were to browse to a html file in svn it would be rendered as text/plain in the browser, but if you needed it to be rendered as text/html you need to do the following.
svn propset svn:mime-type text/html
You could use the above command to set any mime-type on a file thats in svn.

1 comment:

Anonymous said...
This comment has been removed by a blog administrator.