mirror of
https://git.asonix.dog/asonix/http-signature-normalization.git
synced 2024-11-22 09:21:00 +00:00
Make note about Date header in masto compat
This commit is contained in:
parent
2daa7f8077
commit
597a61fb4b
1 changed files with 3 additions and 0 deletions
|
@ -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(),
|
||||||
|
|
Loading…
Reference in a new issue