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 /lib/Service/SignatureService.php | |
parent | 2a41f1ea1dd90b7f381ea6a0bd2e11edee5694a4 (diff) |
including the host
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib/Service/SignatureService.php')
-rw-r--r-- | lib/Service/SignatureService.php | 1 |
1 files changed, 1 insertions, 0 deletions
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); } |