summary refs log tree commit diff stats
path: root/lib/pure/httpclient.nim
diff options
context:
space:
mode:
authorc-blake <c-blake@users.noreply.github.com>2023-11-29 21:36:47 +0000
committerGitHub <noreply@github.com>2023-11-29 22:36:47 +0100
commitbeeacc86ff8b0fb6e1507a4a9462c93d8a0eb989 (patch)
tree4dfc9753bbdfd4b39866820905fb91ce032dde16 /lib/pure/httpclient.nim
parent96513b2506d9057744da9926986181294a3da653 (diff)
downloadNim-beeacc86ff8b0fb6e1507a4a9462c93d8a0eb989.tar.gz
Silence several Hint[Performance] warnings (#23003)
With `--mm:arc` one gets the "implicit copy; if possible, rearrange your
program's control flow" `Performance` warnings without these `move`s.
Diffstat (limited to 'lib/pure/httpclient.nim')
-rw-r--r--lib/pure/httpclient.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/httpclient.nim b/lib/pure/httpclient.nim
index fc66b96f5..08ea99627 100644
--- a/lib/pure/httpclient.nim
+++ b/lib/pure/httpclient.nim
@@ -1232,7 +1232,7 @@ proc responseContent(resp: Response | AsyncResponse): Future[string] {.multisync
   ## A `HttpRequestError` will be raised if the server responds with a
   ## client error (status code 4xx) or a server error (status code 5xx).
   if resp.code.is4xx or resp.code.is5xx:
-    raise newException(HttpRequestError, resp.status)
+    raise newException(HttpRequestError, resp.status.move)
   else:
     return await resp.bodyStream.readAll()