check env first before using HTTP_DEPTH
This commit is contained in:
parent
87061df68f
commit
f52fa73cab
@ -316,6 +316,7 @@ class Application:
|
|||||||
if environ["HTTP_USER_AGENT"]:
|
if environ["HTTP_USER_AGENT"]:
|
||||||
remote_useragent = environ["HTTP_USER_AGENT"]
|
remote_useragent = environ["HTTP_USER_AGENT"]
|
||||||
depthinfo = ""
|
depthinfo = ""
|
||||||
|
if "HTTP_DEPTH" in environ:
|
||||||
if environ["HTTP_DEPTH"]:
|
if environ["HTTP_DEPTH"]:
|
||||||
depthinfo = " with depth " + environ["HTTP_DEPTH"]
|
depthinfo = " with depth " + environ["HTTP_DEPTH"]
|
||||||
time_begin = datetime.datetime.now()
|
time_begin = datetime.datetime.now()
|
||||||
|
Loading…
Reference in New Issue
Block a user