serve text/plain with utf-8 encoding

pull/218/head
Matthew Butterick 5 years ago
parent 0e2ff2c79a
commit 77669695f5

@ -1,16 +1,17 @@
#lang web-server/base
(require racket/list
(require racket/runtime-path
web-server/servlet-env
web-server/dispatch
"project-server-routes.rkt"
"log.rkt"
"../setup.rkt"
"../file.rkt"
"../cache.rkt"
"version.rkt")
(provide start-server)
(define-runtime-path mime-types "server-extras/mime.types")
(define (start-server servlet-path [open-browser-window? #f])
(define-values (pollen-servlet _)
(dispatch-rules
@ -35,6 +36,7 @@
#:port (current-server-port)
#:listen-ip (current-server-listen-ip)
#:servlet-regexp #rx"" ; respond to top level
#:command-line? #t
#:command-line? #true
#:file-not-found-responder route-404
#:mime-types-path mime-types
#:extra-files-paths (list (current-server-extras-path) (current-project-root)))))

File diff suppressed because it is too large Load Diff

@ -1 +1 @@
1578527156
1578686355

Loading…
Cancel
Save