Files
@ 890189aa2bfe
Branch filter:
Location: kallithea/init.d/supervisord.conf
890189aa2bfe
2.6 KiB
text/plain
middleware: decode the repo_name received from http header to unicode
The middlewares seemed to make the incorrect assumption that the headers
contained unicode. Or to put it differently: They relied on the Python default
encoding to be able to convert to unicode instead of using safe_unicode. It
would thus fail if running with LANG=C.
Instead, utilize that the header actually contains str_repo_name and explicitly
decode that to unicode.
The middlewares seemed to make the incorrect assumption that the headers
contained unicode. Or to put it differently: They relied on the Python default
encoding to be able to convert to unicode instead of using safe_unicode. It
would thus fail if running with LANG=C.
Instead, utilize that the header actually contains str_repo_name and explicitly
decode that to unicode.