mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
dc7cf2cfdc
commit
d0703d5ae1
@ -64,6 +64,8 @@ def parse_request_uri(uri):
|
|||||||
|
|
||||||
def parse_uri(uri, parse_query=True):
|
def parse_uri(uri, parse_query=True):
|
||||||
scheme, authority, path = parse_request_uri(uri)
|
scheme, authority, path = parse_request_uri(uri)
|
||||||
|
if path is None:
|
||||||
|
raise HTTPSimpleResponse(httplib.BAD_REQUEST, "No path component")
|
||||||
if b'#' in path:
|
if b'#' in path:
|
||||||
raise HTTPSimpleResponse(httplib.BAD_REQUEST, "Illegal #fragment in Request-URI.")
|
raise HTTPSimpleResponse(httplib.BAD_REQUEST, "Illegal #fragment in Request-URI.")
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user