Add comment about serving the servlets' source.

(We and the browsers cannot handle .SCM files.)
This commit is contained in:
interp 2003-01-18 17:56:18 +00:00
parent 0bd2a7b254
commit dfe5c56163
1 changed files with 7 additions and 1 deletions

View File

@ -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:
;;; End: