Fix the other withNewLine template.

This commit is contained in:
Dominik Picheta
2017-02-26 12:54:03 +01:00
parent f9cce32097
commit b5de988eda

View File

@@ -1185,7 +1185,7 @@ proc post*(client: HttpClient | AsyncHttpClient, url: string, body = "",
## specified in ``client.maxRedirects``.
let (mpHeader, mpBody) = format(multipart)
# TODO: Support FutureStream for `body` parameter.
template withNewLine(x): expr =
template withNewLine(x): untyped =
if x.len > 0 and not x.endsWith("\c\L"):
x & "\c\L"
else: