About 50% faster base64 implemention. (#12436)
This commit is contained in:
parent
37dfb7ecc6
commit
5ba932e43c
4 changed files with 186 additions and 116 deletions
|
|
@ -454,7 +454,7 @@ proc generateHeaders(requestUrl: Uri, httpMethod: string,
|
|||
|
||||
# Proxy auth header.
|
||||
if not proxy.isNil and proxy.auth != "":
|
||||
let auth = base64.encode(proxy.auth, newline = "")
|
||||
let auth = base64.encode(proxy.auth)
|
||||
add(result, "Proxy-Authorization: basic " & auth & "\c\L")
|
||||
|
||||
for key, val in headers:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue