From 4d84db16eec947f06cc310714531bd970a87fb88 Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Tue, 20 Sep 2005 19:23:15 +0000 Subject: [PATCH] Provide default MIME type of "application/octet-stream" for otherwise unrecognized file types. --- v7/src/ssp/mod-lisp.scm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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)) -- 2.25.1