Rev1861, Fix favicon for zero url access type
This commit is contained in:
parent
4988d31aff
commit
f74e9397db
2 changed files with 6 additions and 2 deletions
|
@ -10,7 +10,7 @@ class Config(object):
|
||||||
|
|
||||||
def __init__(self, argv):
|
def __init__(self, argv):
|
||||||
self.version = "0.5.1"
|
self.version = "0.5.1"
|
||||||
self.rev = 1859
|
self.rev = 1861
|
||||||
self.argv = argv
|
self.argv = argv
|
||||||
self.action = None
|
self.action = None
|
||||||
self.config_file = "zeronet.conf"
|
self.config_file = "zeronet.conf"
|
||||||
|
|
|
@ -240,7 +240,11 @@ class UiRequest(object):
|
||||||
address = re.sub("/.*", "", path.lstrip("/"))
|
address = re.sub("/.*", "", path.lstrip("/"))
|
||||||
if self.isProxyRequest() and (not path or "/" in path[1:]):
|
if self.isProxyRequest() and (not path or "/" in path[1:]):
|
||||||
file_url = re.sub(".*/", "", inner_path)
|
file_url = re.sub(".*/", "", inner_path)
|
||||||
root_url = "/"
|
if self.env["HTTP_HOST"] == "zero":
|
||||||
|
root_url = "/" + address + "/"
|
||||||
|
else:
|
||||||
|
root_url = "/"
|
||||||
|
|
||||||
else:
|
else:
|
||||||
file_url = "/" + address + "/" + inner_path
|
file_url = "/" + address + "/" + inner_path
|
||||||
root_url = "/" + address + "/"
|
root_url = "/" + address + "/"
|
||||||
|
|
Loading…
Reference in a new issue