Fixes crash in httpclient due to new string indexing rules.
This commit is contained in:
parent
6f4ca3f276
commit
608017801d
1 changed files with 1 additions and 1 deletions
|
|
@ -749,7 +749,7 @@ proc generateHeaders(requestUrl: Uri, httpMethod: string,
|
|||
|
||||
if proxy.isNil or requestUrl.scheme == "https":
|
||||
# /path?query
|
||||
if requestUrl.path[0] != '/': result.add '/'
|
||||
if not requestUrl.path.startsWith("/"): result.add '/'
|
||||
result.add(requestUrl.path)
|
||||
if requestUrl.query.len > 0:
|
||||
result.add("?" & requestUrl.query)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue