We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bad8432 commit cb17bd9Copy full SHA for cb17bd9
nginx.py
@@ -419,7 +419,7 @@ def loads(data, conf=True):
419
s = Server()
420
lopen.insert(0, s)
421
if re.match(r'\s*location.*', line):
422
- lpath = re.match(r'\s*location\s*(.*\S+)\s*', line).group(1)
+ lpath = re.match(r'\s*location\s*(.*\S+)\s*{', line).group(1)
423
l = Location(lpath)
424
lopen.insert(0, l)
425
if re.match(r'\s*if.*({.*)?$', line):
0 commit comments