Fix the other withNewLine template.
This commit is contained in:
parent
f9cce32097
commit
b5de988eda
1 changed files with 1 additions and 1 deletions
|
|
@ -1185,7 +1185,7 @@ proc post*(client: HttpClient | AsyncHttpClient, url: string, body = "",
|
||||||
## specified in ``client.maxRedirects``.
|
## specified in ``client.maxRedirects``.
|
||||||
let (mpHeader, mpBody) = format(multipart)
|
let (mpHeader, mpBody) = format(multipart)
|
||||||
# TODO: Support FutureStream for `body` parameter.
|
# TODO: Support FutureStream for `body` parameter.
|
||||||
template withNewLine(x): expr =
|
template withNewLine(x): untyped =
|
||||||
if x.len > 0 and not x.endsWith("\c\L"):
|
if x.len > 0 and not x.endsWith("\c\L"):
|
||||||
x & "\c\L"
|
x & "\c\L"
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue