Mark RedirectAuthHeaders as non_exhaustive

This commit is contained in:
Martin Algesten
2021-12-11 08:54:58 +01:00
parent 27533cf31b
commit f941717a5d

View File

@@ -22,6 +22,7 @@ use {
/// `SameHost` send the authorization header in redirects only if the host of the redirect is /// `SameHost` send the authorization header in redirects only if the host of the redirect is
/// the same of the previous request, and both use the `https` scheme. /// the same of the previous request, and both use the `https` scheme.
#[derive(Debug, Clone, PartialEq, Eq)] #[derive(Debug, Clone, PartialEq, Eq)]
#[non_exhaustive]
pub enum RedirectAuthHeaders { pub enum RedirectAuthHeaders {
/// Never preserve the `authorization` header on redirect. This is the default. /// Never preserve the `authorization` header on redirect. This is the default.
Never, Never,