diff options
author | William Pitcock <nenolod@dereferenced.org> | 2019-03-01 12:21:09 +0000 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2019-03-01 22:32:00 +0300 |
commit | 28578c6ab51185a1beb94f8e49412fc98b271f1e (patch) | |
tree | ea456aa17a0bec7ad444e1c907e2b1562d7ac47c | |
parent | e58596bbdc7ed2b71f6e758f448d28bdf9354007 (diff) | |
download | pleroma-28578c6ab51185a1beb94f8e49412fc98b271f1e.tar.gz |
activitypub: fix date header format
HTTP date header specification says that days must always be two-digit.
Accordingly, change the format string used to ensure days are always
represented as two-digit (e.g. 01).
-rw-r--r-- | lib/pleroma/web/activity_pub/activity_pub.ex | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/web/activity_pub/activity_pub.ex b/lib/pleroma/web/activity_pub/activity_pub.ex index 52f5a0c70..bd4ac6197 100644 --- a/lib/pleroma/web/activity_pub/activity_pub.ex +++ b/lib/pleroma/web/activity_pub/activity_pub.ex @@ -776,7 +776,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do date = NaiveDateTime.utc_now() - |> Timex.format!("{WDshort}, {D} {Mshort} {YYYY} {h24}:{m}:{s} GMT") + |> Timex.format!("{WDshort}, {0D} {Mshort} {YYYY} {h24}:{m}:{s} GMT") signature = Pleroma.Web.HTTPSignatures.sign(actor, %{ |