\r
: list-directory ( directory -- response )\r
file-responder get allow-listings>> [\r
- directory>html "text/html" <content>\r
+ directory>html <html-content>\r
] [\r
drop <403>\r
] if ;\r
index-names>> adjoin ;\r
\r
: serve-fhtml ( path -- response )\r
- <fhtml> "text/html" <content> ;\r
+ <fhtml> <html-content> ;\r
\r
: enable-fhtml ( responder -- responder )\r
[ serve-fhtml ] "application/x-factor-server-page" pick special>> set-at\r