diff --git a/scheme/httpd/surflets/start-surflet-server b/scheme/httpd/surflets/start-surflet-server index cf3eae9..7aeabae 100755 --- a/scheme/httpd/surflets/start-surflet-server +++ b/scheme/httpd/surflets/start-surflet-server @@ -191,6 +191,12 @@ exec scsh -lm $sunet/packages.scm -lm $ssax/lib/packages.scm -lm $sunet/httpd/se ; (cons "info" (info-handler #f #f #f ; "Generated by info-gateway")) ; (cons "cgi-bin" (cgi-handler cgi-bin-dir)) + ;; Browsers cannot handle .SCM files: Opera shows + ;; it as HTML, Netscape asks for a program to + ;; view it. ROOTED-FILE-OR-DIRECTORY-HANDLER + ;; should serve .SCM files as text/plain (I did + ;; not want to write a handler just for this file + ;; type.) (cons "source" (rooted-file-or-directory-handler servlet-dir)) (cons "img" (rooted-file-handler images-dir)) (cons "servlet" (servlet-handler servlet-dir))) @@ -201,4 +207,4 @@ exec scsh -lm $sunet/packages.scm -lm $ssax/lib/packages.scm -lm $sunet/httpd/se ;;; Local Variables: ;;; mode:scheme -;;; End: \ No newline at end of file +;;; End: