Avoid needlessly setting the encoding

This commit is contained in:
Christopher Baines 2025-02-07 17:02:37 +00:00
parent cb2085b684
commit ee2a93fbca

View file

@ -317,7 +317,8 @@ on the procedure being called at any particular time."
(if body-written?
(begin
(force-output client)
(when (procedure? body)
(when (and (procedure? body)
(response-content-length response))
(set-port-encoding! client "ISO-8859-1"))
(keep-alive? response))
#f)))