From 70de8dd51d465ea2016d6bb7c0728111f4493668 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Tue, 23 Jul 2019 00:52:40 +0200 Subject: save headers for all intermediate redirects (#2677) --- cli/deno_error.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cli/deno_error.rs') diff --git a/cli/deno_error.rs b/cli/deno_error.rs index 41b0d4a94..ebcda1c8e 100644 --- a/cli/deno_error.rs +++ b/cli/deno_error.rs @@ -75,6 +75,10 @@ pub fn invalid_address_syntax() -> ErrBox { StaticError(ErrorKind::InvalidInput, "invalid address syntax").into() } +pub fn too_many_redirects() -> ErrBox { + StaticError(ErrorKind::TooManyRedirects, "too many redirects").into() +} + pub trait GetErrorKind { fn kind(&self) -> ErrorKind; } -- cgit v1.2.3