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

Bad MIMETYPE configuration for .htm files accessed via SVN HTTP

From: vishwanath ramachandran_at_honeywell.com <ramachandran_at_honeywell.com>
Date: Tue, 17 Nov 2009 16:02:00 +0530

Hi There


Videos rendered as html, does not open in Fire-fox. They play in IE. I
believe 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.

However, I expect that without this MIMETYPE specified in the request,
Firefox would then use the mimetype contained in the file to decide upon
how to decode it.

The problem comes from the SVN HTTP frontend: there should be a mapping
table in one of the frontend configuration files, that maps known file
extensions to appropriate mimetype such as *.jpg -> mimetype/image-jpeg.
Apparently, the *.htm and *.html entries are either missing, either put
as text/plain.

Here is the HTTP request and the HTTP answer:


s%20SWDP.htm Load Flags
Request Headers:
      Host [acssvn.honeywell.com]
      User-Agent [Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/20091102 Firefox/3.5.5 (.NET CLR 3.5.30729)]
      Accept [text/html, application/xhtml+xml,
      Accept-Language [en-us, en;q=0.5]
      Accept-Encoding [gzip, deflate]
      Keep-Alive [300]
      Connection [keep-alive]
      If-Modified-Since [Wed, 24 Jun 2009 14:42:16 GMT]
      If-None-Match ["188//trunk/ECC Homes SWDP.htm"]
      Cache-Control [max-age=0]


Date[Tue, 17 Nov 2009 08:38:47 GMT]
      Server[Apache/2.0.52 (Red Hat)]
      Last-Modified [Wed, 24 Jun 2009 14:42:16 GMT]
      Etag["188//trunk/ECC Homes SWDP.htm"]
      Accept-Ranges [bytes]
      Content-Length [17362]
      Connection [close]
      Content-Type [text/plain; charset=UTF-8]
Please suggest in this regards





Desk: +91 80 26588360 Extn: 48555

Cell: +91 9008318114


To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-11-17 11:33:15 CET

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