From fcbad58924ef70a537504c4fa98968cfc3ee50e8 Mon Sep 17 00:00:00 2001 From: jethrogb Date: Mon, 31 Jul 2017 09:05:05 -0700 Subject: [PATCH] docs(headers): clarify Basic auth See https://tools.ietf.org/html/rfc7617 --- src/header/common/authorization.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/header/common/authorization.rs b/src/header/common/authorization.rs index e3bd6261..98249bac 100644 --- a/src/header/common/authorization.rs +++ b/src/header/common/authorization.rs @@ -140,7 +140,8 @@ pub struct Basic { /// The username as a possibly empty string pub username: String, /// The password. `None` if the `:` delimiter character was not - /// part of the parsed input. + /// part of the parsed input. Note: A compliant client MUST + /// always send a password (which may be the empty string). pub password: Option }