diff options
author | nick125 <devnull@localhost> | 2008-07-09 21:14:11 +0000 |
---|---|---|
committer | nick125 <devnull@localhost> | 2008-07-09 21:14:11 +0000 |
commit | 8eedc370e0ef5d56f9ba90ab1cb20fd963cddac4 (patch) | |
tree | 1bd42a319e3269c285edbc175fd8433616056fbb | |
parent | 2558f5229c1fb8ed7d046e41e3b0eb941931f357 (diff) | |
download | cherrypy-8eedc370e0ef5d56f9ba90ab1cb20fd963cddac4.tar.gz |
Fix a small issue in r2019 so we explicitly state we want to split by spaces (" ") rather than use split()'s default splitting algorithm (which splits on spaces, newlines, etc).
-rw-r--r-- | cherrypy/lib/httptools.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cherrypy/lib/httptools.py b/cherrypy/lib/httptools.py index 7a024b76..94a0c689 100644 --- a/cherrypy/lib/httptools.py +++ b/cherrypy/lib/httptools.py @@ -317,7 +317,7 @@ def validStatus(status): def parseRequestLine(requestLine): """Return (method, path, querystring, protocol) from a requestLine.""" - splitLine = requestLine.split() + splitLine = requestLine.split(" ") method, protocol = splitLine[0], splitLine[-1] path = " ".join(splitLine[1:-1]) |