Fixed #392 -- Fixed bug in memcache setup if arguments are given. Thanks, adrian@exoweb.net

git-svn-id: http://code.djangoproject.com/svn/django/trunk@598 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty 2005-09-01 23:09:48 +00:00
parent 29c50bc0d4
commit 582e6a1010
1 changed files with 39 additions and 39 deletions

View File

@ -243,7 +243,7 @@ def get_cache(backend_uri):
qpos = rest.find('?') qpos = rest.find('?')
if qpos != -1: if qpos != -1:
params = dict(parse_qsl(rest[qpos+1:])) params = dict(parse_qsl(rest[qpos+1:]))
host = rest[:qpos] host = rest[2:qpos]
else: else:
params = {} params = {}
if host.endswith('/'): if host.endswith('/'):