diff options
author | djazz <daniel.j.hede@gmail.com> | 2020-06-12 10:16:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-12 10:16:38 +0200 |
commit | 1168c75381446f8c81ce3f5f329ce2dab238415c (patch) | |
tree | 221eb3b6af3e38c1aaf5bba31ce4ceb7c621f8d3 /lib/pure/httpclient.nim | |
parent | 67d34366dc442cd655c78ce41a3fa50491736eb6 (diff) | |
download | Nim-1168c75381446f8c81ce3f5f329ce2dab238415c.tar.gz |
httpcore: Add http code 308 Permanent Redirect (#14639)
* httpcore: Add http code 308 * httpclient: Add 308 to redirection proc * fix typo
Diffstat (limited to 'lib/pure/httpclient.nim')
-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 42735ad4e..1ac3ae185 100644 --- a/lib/pure/httpclient.nim +++ b/lib/pure/httpclient.nim @@ -457,7 +457,7 @@ proc sendFile(socket: Socket | AsyncSocket, file.close() proc redirection(status: string): bool = - const redirectionNRs = ["301", "302", "303", "307"] + const redirectionNRs = ["301", "302", "303", "307", "308"] for i in items(redirectionNRs): if status.startsWith(i): return true |