From b5de988eda30483387c838c653010c73fc06d239 Mon Sep 17 00:00:00 2001 From: Dominik Picheta Date: Sun, 26 Feb 2017 12:54:03 +0100 Subject: Fix the other withNewLine template. --- lib/pure/httpclient.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/pure/httpclient.nim b/lib/pure/httpclient.nim index 4d8400af6..e88847004 100644 --- a/lib/pure/httpclient.nim +++ b/lib/pure/httpclient.nim @@ -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: -- cgit 1.4.1-2-gfad0