From dfe5c561634d4e53bef219e73a50a278897a142a Mon Sep 17 00:00:00 2001 From: interp Date: Sat, 18 Jan 2003 17:56:18 +0000 Subject: [PATCH] Add comment about serving the servlets' source. (We and the browsers cannot handle .SCM files.) --- scheme/httpd/surflets/start-surflet-server | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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: