aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorFChannel <>2021-06-25 16:13:38 -0700
committerFChannel <>2021-06-25 16:13:38 -0700
commitea9b7878dcbcedce3669eb2df23a14546f7188af (patch)
treea5f43fe2967203c3b2ae55eb44920c6d4f9e5469 /main.go
parent80bcce22a2368c3911137dec97d6744dee328809 (diff)
corrected newline escaping
Diffstat (limited to 'main.go')
-rw-r--r--main.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.go b/main.go
index 4d23a8d..fb6efc7 100644
--- a/main.go
+++ b/main.go
@@ -1835,7 +1835,7 @@ func MakeActivityRequestOutbox(db *sql.DB, activity Activity) {
path = re.ReplaceAllString(path, "")
- sig := fmt.Sprintf("(request-target): %s %s\\nhost: %s\\ndate: %s", "post", path, instance, date)
+ sig := fmt.Sprintf("(request-target): %s %s\nhost: %s\ndate: %s", "post", path, instance, date)
encSig := ActivitySign(db, *activity.Actor, sig)
signature := fmt.Sprintf("keyId=\"%s\",headers=\"(request-target) host date\",signature=\"%s\"", activity.Actor.PublicKey.Id, encSig)
@@ -1873,7 +1873,7 @@ func MakeActivityRequest(db *sql.DB, activity Activity) {
re := regexp.MustCompile("https?://(www.)?")
path = re.ReplaceAllString(path, "")
- sig := fmt.Sprintf("(request-target): %s %s\\nhost: %s\\ndate: %s", "post", path, instance, date)
+ sig := fmt.Sprintf("(request-target): %s %s\nhost: %s\ndate: %s", "post", path, instance, date)
encSig := ActivitySign(db, *activity.Actor, sig)
signature := fmt.Sprintf("keyId=\"%s\",headers=\"(request-target) host date\",signature=\"%s\"", activity.Actor.PublicKey.Id, encSig)