httpcore: Add http code 308 Permanent Redirect (#14639)

* httpcore: Add http code 308
* httpclient: Add 308 to redirection proc
* fix typo
This commit is contained in:
djazz 2020-06-12 10:16:38 +02:00 • committed by GitHub
commit 1168c75381
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -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