Commits

joberschweiber  committed 7f34ce4

Always use lower case hostnames

  • Participants
  • Parent commits c526c14

Comments (0)

Files changed (1)

File rhodecode/lib/celerylib/tasks.py

     vhosts_file = open(vhosts_path, 'r')
     vhosts_map = dict([line.strip().split(' ') for line in vhosts_file.readlines()])
     vhosts_file.close()
-    real_host = hostname + host_ext
+    real_host = (hostname + host_ext).lower()
     log.info('Registering name %s for directory %s' % (real_host, pub_host_base))
     vhosts_map[real_host] = pub_host_base
     if cname != None:
         log.info('Registering name %s for directory %s' % (cname, pub_repo_base))
-        vhosts_map[cname] = pub_repo_base
+        vhosts_map[cname.lower()] = pub_repo_base
     vhosts_file = open(vhosts_path, 'w')
     vhosts_file.writelines([i + ' ' + vhosts_map[i] + "\r\n" for i in vhosts_map])
     vhosts_file.close()