[racket] PLaneT source browser has wrong MIME type

From: Norman Gray (norman at astro.gla.ac.uk)
Date: Wed Jan 26 16:57:53 EST 2011


The source browser on PLaneT appears to be giving out files with incorrect (well, non-useful) MIME types:

% curl -i http://planet.racket-lang.org/package-source/jaymccarthy/sqlite.plt/5/0/sqlite-ffi.rkt
Date: Wed, 26 Jan 2011 21:56:03 GMT
Server: Apache/2.2.17 (Fedora)
Last-Modified: Tue, 18 Jan 2011 19:32:22 GMT
ETag: "9e895a-6a59-49a23f59bbd80"
Accept-Ranges: bytes
Content-Length: 27225
Connection: close
Content-Type: text/plain; charset=UTF-8

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>PLaneT Package Repository : Home &gt; jaymccarthy &gt; sqlite.plt &gt;  package version 5.0</title><meta content="Racket" name="generator" /><meta content="text/html; charset=utf-8" http-equiv="Content-Type" /><link href="/plticon.ico" rel="icon" type="image/ico" /><link href="/plticon.ico" rel="shortcut icon" /><link href="/plt.css" rel="stylesheet" title="default" type="text/css" /><link rel="stylesheet" href="/css/main.css" type="text/css" /><link rel="stylesheet" href="/css/planet-browser-styles.css" type="text/css" /><style type="text/css">import "/css/main.css"; import "/css/planet-browser-styles.css"; import "http://www.racket-lang.org/plt.css"; </style></head>

[picking a source file at random]

The MIME type looks like it should be an HTML one, rather than text/plain.

Best wishes,


Norman Gray  :  http://nxg.me.uk

Posted on the users mailing list.