Files @ 890189aa2bfe
Branch filter:

Location: kallithea/docs/readme.rst

Mads Kiilerich
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.
1
2
3
.. _readme:

.. include:: ./../README.rst