Skip to content

Crashes if it finds map #17

@fulder

Description

@fulder

map $aa $bb { }

gives the error:

File "C:\Python27\lib\site-packages\nginx.py", line 515, in loadf
    return load(f)
  File "C:\Python27\lib\site-packages\nginx.py", line 505, in load
    return loads(fobj.read())
  File "C:\Python27\lib\site-packages\nginx.py", line 454, in loads
    if isinstance(lopen[0], Container):
IndexError: list index out of range

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions