fix path_regex of tileserver

This commit is contained in:
Laura Klünder 2017-12-23 16:53:17 +01:00
parent 895cf20d63
commit 66a6e3eee2

View file

@ -22,7 +22,7 @@ logger = logging.getLogger('c3nav')
class TileServer: class TileServer:
def __init__(self): def __init__(self):
self.path_regex = re.compile(r'^/(\d+)/(-\d+)/(-?\d+)/(-?\d+).png$') self.path_regex = re.compile(r'^/(\d+)/(-?\d+)/(-?\d+)/(-?\d+).png$')
self.cookie_regex = re.compile(r'(^| )c3nav_tile_access="?([^;" ]+)"?') self.cookie_regex = re.compile(r'(^| )c3nav_tile_access="?([^;" ]+)"?')