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

@ -66,6 +66,7 @@ const
Http304* = HttpCode(304)
Http305* = HttpCode(305)
Http307* = HttpCode(307)
Http308* = HttpCode(308)
Http400* = HttpCode(400)
Http401* = HttpCode(401)
Http403* = HttpCode(403)
@ -272,6 +273,7 @@ proc `$`*(code: HttpCode): string =
of 304: "304 Not Modified"
of 305: "305 Use Proxy"
of 307: "307 Temporary Redirect"
of 308: "308 Permanent Redirect"
of 400: "400 Bad Request"
of 401: "401 Unauthorized"
of 403: "403 Forbidden"