>It must be passed to the main server process.
>
>I tried this:
>
>$ pil @lib/http.l @lib/xhtml.l -'mime "txt" "foo/bar; mumble"' --server
>9091 tst.l
Wow, you are right!
This is the improvised code which solves both:
$ pil @lib/http.l @lib/xhtml.l -'(and(mime "txt" "text/plain;
charset=utf-8")(mime "htm" "text/html; charset=utf-8"))' --server 9092 tst.l
>The problem here is that tst.l is not loaded, before tst.txt is
>requested, and
>*if* tst.l were requested it would be too late.
I wasn't sure but tried loading another file with the mime code. I just
recalled solving the issue in a similar way, months before! :D
To anyone else. Save the mime code and load before server start like below:
$ pil @lib/http.l @lib/xhtml.l mime.l --server 9092 tst.l
Thanks Alex!
--
SuperSaiyan Blue
--
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe