mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-19 05:39:18 +02:00
servlets should assume html if no Content-Type is specified
This commit is contained in:
parent
0388d9880c
commit
5610653c20
1 changed files with 4 additions and 0 deletions
|
@ -158,6 +158,10 @@
|
|||
(request-status-set! request status)
|
||||
(let* ((out (request-out request))
|
||||
(headers (if (pair? o) (car o) '()))
|
||||
(headers (if (assq 'Content-Type headers)
|
||||
headers
|
||||
`((Content-Type . "text/html; charset=UTF-8")
|
||||
,@headers)))
|
||||
(headers
|
||||
(cond
|
||||
;; Socket bound, not CGI, send normal status.
|
||||
|
|
Loading…
Add table
Reference in a new issue