Tuesday, October 29, 2019

Re: Setting charset in Content-Type header with relayd and httpd

Hello,

Hiltjo Posthuma <hiltjo@codemadness.org> [2019-10-29 23:15:56 +0100]:
> You can actually do it in httpd.conf.
>
> This will give a syntax error (httpd -n):
>
> "text/plain; charset=utf-8" txt
>
> Using quoting will work:
>
> "text"/"plain; charset=utf-8" txt

Thank you, this indeed works, although feels to be a somewhat hackish
solution.

Unforunately it seems that the same type cannot be specified multiple
times so I cannot just include /usr/share/misc/mime.types any more and
override txt, but I guess I'll just have to create a modified copy of it
and include that.

Kind regards
Bertalan

--
Bertalan Z. Péter <bertalan.peter@bertalanp99.eu>
FB9B 34FE 3500 3977 92AE 4809 935C 3BEB 44C1 0F89

/"\
\ / ASCII Ribbon Campaign
X against HTML email & proprietary attachments
/ \ www.asciiribbon.org

No comments:

Post a Comment