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

Re: svn:mime-type property

From: Kalin KOZHUHAROV <kalin_at_thinrope.net>
Date: 2005-09-08 02:29:00 CEST

Dale R. Worley wrote:
> On Wed, 2005-09-07 at 16:34 -0400, Andrea O. Salas wrote:
>
>>When I use a netscape browser to look at these two files, they are
>>immediately displayed.
>>However, when I use internet explorer, it thinks the .doc file is a MS
>>Word file and
>>it doesn't know what the .man file is. I tried setting the svn:mime-type
>>property for
>>both of these files to text/plain hoping that the internet explorer
>>browser would then
>>know it was text. However, this had no effect on the internet explorer
>>browser.
>
>
> One way to tell for sure is to find the full URL
> (http://host/path/foo.doc) by which you can retrieve the file into your
> browser, then use telnet to pretend you're a browser:
>
> $ telnet host 80
> HEAD /path/foo.doc HTTP/1.0
> [blank line]
>
> Then the host should respond with something like:
>
> HTTP/1.0 200 OK
> Date: Wed, 07 Sep 2005 23:42:04 GMT
> Server: Apache/1.3.33 (Unix) PHP/5.0.4 mod_ssl/2.8.22 OpenSSL/0.9.7d
> Content-Type: text/plain
>
> The "Content-Type:" header gives the MIME-type of the file. If that
> header is present and says "text/plain", the browser has no excuse to
> not display it as such.

Some (old) versions on IE do not care about the MIME type, but look at the file extension only.
I remember being frustrated about that with a IE for Macintosh (was it 4.5?) displaying .shtml files as text.
The only solution was to rename all of them to .html (and set apache to parse all html for SSH, ouch :-(

What version and OS is that IE? Try to upgrade it. And use Firefox anyway.

Kalin.

-- 
|[ ~~~~~~~~~~~~~~~~~~~~~~ ]|
+-> http://ThinRope.net/ <-+
|[ ______________________ ]|
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Sep 8 02:31:31 2005

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