About 50% faster base64 implemention. (#12436)

This commit is contained in:
treeform 2019-10-17 00:50:00 -07:00 • committed by Andreas Rumpf
commit 5ba932e43c
4 changed files with 186 additions and 116 deletions

View file

@ -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: