diff src/server/server.py @ 1046:614843c49d6c

server: fixed unicode exception if old URL in url_redirections had a unicode character
author Goffi <goffi@goffi.org>
date Wed, 24 Jan 2018 21:44:26 +0100
parents b2eeb9ac2ab8
children 3f6f4d907c30
line wrap: on
line diff
--- a/src/server/server.py	Wed Jan 24 20:26:39 2018 +0100
+++ b/src/server/server.py	Wed Jan 24 21:44:26 2018 +0100
@@ -279,7 +279,7 @@
 
         # XXX: splitted path case must not be changed, as it may be significant
         #      (e.g. for blog items)
-        return self._normalizeURL(path, lower=False).split('/'), uri, path, args
+        return self._normalizeURL(path.decode('utf-8'), lower=False).split('/'), uri, path, args
 
     def _redirect(self, request, request_data):
         """Redirect an URL by rewritting request