szabodanika / microbin

A secure, configurable file-sharing and URL shortening web app written in Rust.
https://microbin.eu
BSD 3-Clause "New" or "Revised" License
2.51k stars 151 forks source link

Set charset=utf-8 for /raw/{id} response #246

Open luk1337 opened 6 months ago

luk1337 commented 6 months ago

This matches <meta charset="utf-8"> in HTML and thus lets browser decode content properly.

wanyunr commented 1 month ago

It appears that this has not taken effect. I still encounter pages under the raw path with content-type:text/plain, rather than being set to Content-Type:text/plain; charset=utf-8.


I apologize for overlooking the fact that this Pull request is in OPEN status, but has been merged in another repository.