Files
@ 890189aa2bfe
Branch filter:
Location: kallithea/.travis.yml
890189aa2bfe
834 B
text/x-yaml
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.