Skip to content

Improper query string breaks everything #9

@Stuart-Wilcox

Description

@Stuart-Wilcox

The malformatted query string /people?location (with no =val) is a malformatted query string, but causes an index out of bounds error since it is expected to be a proper query string. Check the stack trace:

Traceback (most recent call last):
  File "..\site-packages\servepy.py", line 30, in handle
    http = _Http(self.data, self.server)
  File "..\site-packages\servepy.py", line 572, in __init__
    self.request = Request(server.app, complete_url, protocol, method, headers, body=body, params=dict(), cookies=None, baseUrl=None)
  File "..\site-packages\servepy.py", line 596, in __init__
    self.query[pair[0]]=pair[1]
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