From: Chris Hanson Date: Tue, 20 Sep 2005 19:23:15 +0000 (+0000) Subject: Provide default MIME type of "application/octet-stream" for otherwise X-Git-Tag: 20090517-FFI~1218 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=4d84db16eec947f06cc310714531bd970a87fb88;p=mit-scheme.git Provide default MIME type of "application/octet-stream" for otherwise unrecognized file types. --- diff --git a/v7/src/ssp/mod-lisp.scm b/v7/src/ssp/mod-lisp.scm index 3305a9d2a..947d5a32c 100644 --- a/v7/src/ssp/mod-lisp.scm +++ b/v7/src/ssp/mod-lisp.scm @@ -1,6 +1,6 @@ #| -*-Scheme-*- -$Id: mod-lisp.scm,v 1.29 2005/09/17 01:20:50 cph Exp $ +$Id: mod-lisp.scm,v 1.30 2005/09/20 19:23:15 cph Exp $ Copyright 2003,2004,2005 Massachusetts Institute of Technology @@ -126,7 +126,9 @@ USA. (expand default-type handler) (begin (maybe-parse-post-variables request) - (let ((type (file-content-type pathname))) + (let ((type + (or (file-content-type pathname) + "application/octet-stream"))) (expand type (get-mime-handler type))))))) response))