diff options
author | Dominik Picheta <dominikpicheta@gmail.com> | 2017-02-26 12:54:03 +0100 |
---|---|---|
committer | Dominik Picheta <dominikpicheta@gmail.com> | 2017-02-26 12:54:03 +0100 |
commit | b5de988eda30483387c838c653010c73fc06d239 (patch) | |
tree | 35ae49ea07b39cf7df45b185836c578dc40cc1b5 /lib | |
parent | f9cce320974c33554302d2a801c89e413c70a80b (diff) | |
download | Nim-b5de988eda30483387c838c653010c73fc06d239.tar.gz |
Fix the other withNewLine template.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pure/httpclient.nim | 2 |
1 files changed, 1 insertions, 1 deletions
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: |