Mercurial > libervia-web
comparison 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 |
comparison
equal
deleted
inserted
replaced
1045:b2eeb9ac2ab8 | 1046:614843c49d6c |
---|---|
277 path, argstring = x | 277 path, argstring = x |
278 args = http.parse_qs(argstring, 1) | 278 args = http.parse_qs(argstring, 1) |
279 | 279 |
280 # XXX: splitted path case must not be changed, as it may be significant | 280 # XXX: splitted path case must not be changed, as it may be significant |
281 # (e.g. for blog items) | 281 # (e.g. for blog items) |
282 return self._normalizeURL(path, lower=False).split('/'), uri, path, args | 282 return self._normalizeURL(path.decode('utf-8'), lower=False).split('/'), uri, path, args |
283 | 283 |
284 def _redirect(self, request, request_data): | 284 def _redirect(self, request, request_data): |
285 """Redirect an URL by rewritting request | 285 """Redirect an URL by rewritting request |
286 | 286 |
287 this is *NOT* a HTTP redirection, but equivalent to URL rewritting | 287 this is *NOT* a HTTP redirection, but equivalent to URL rewritting |