diff options
author | Maxence Lange <maxence@artificial-owl.com> | 2018-12-20 11:26:39 -0100 |
---|---|---|
committer | Maxence Lange <maxence@artificial-owl.com> | 2018-12-20 11:26:39 -0100 |
commit | fb8e11a000408e43e51ef4f050c3a0761a4914c5 (patch) | |
tree | 49484910821ac1b2edb288e47a9f50959506dde8 | |
parent | 2a41f1ea1dd90b7f381ea6a0bd2e11edee5694a4 (diff) |
including the host
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
-rw-r--r-- | lib/Service/ActivityService.php | 2 | ||||
-rw-r--r-- | lib/Service/SignatureService.php | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/lib/Service/ActivityService.php b/lib/Service/ActivityService.php index 0542ac19..fff3ed07 100644 --- a/lib/Service/ActivityService.php +++ b/lib/Service/ActivityService.php @@ -360,8 +360,6 @@ class ActivityService { $request = new Request($path->getPath(), $requestType); $request->setTimeout($queue->getTimeout()); - $request->addHeader('Host: ' . $path->getAddress()); - $request->setDataJson($queue->getActivity()); $request->setAddress($path->getAddress()); diff --git a/lib/Service/SignatureService.php b/lib/Service/SignatureService.php index 799bf2de..923af89f 100644 --- a/lib/Service/SignatureService.php +++ b/lib/Service/SignatureService.php @@ -149,6 +149,7 @@ class SignatureService { $header = 'keyId="' . $localActorLink . '",headers="(request-target) host date",signature="' . $signed . '"'; + $request->addHeader('Host: ' . $path->getAddress()); $request->addHeader('Date: ' . $date); $request->addHeader('Signature: ' . $header); } |