Make note about Date header in masto compat

This commit is contained in:
asonix 2020-04-23 13:52:57 -05:00
parent 2daa7f8077
commit 597a61fb4b

View file

@ -345,6 +345,9 @@ impl Config {
/// Opt out of using the (created) and (expires) fields introduced in draft 11 /// Opt out of using the (created) and (expires) fields introduced in draft 11
/// ///
/// Use this for compatibility with mastodon /// Use this for compatibility with mastodon
///
/// Note that by enabling this, the Date header becomes required on requests. This is to
/// prevent replay attacks
pub fn dont_use_created_field(self) -> Self { pub fn dont_use_created_field(self) -> Self {
Config { Config {
config: self.config.dont_use_created_field(), config: self.config.dont_use_created_field(),