From 9848227c11f3cc4c0ccf6e01d0185c5fda506e80 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Thu, 4 Oct 2018 19:06:18 +0300 Subject: fixes found in tests --- .../src/main/java/com/juick/server/api/activity/Profile.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'juick-server/src/main/java/com/juick/server/api/activity') diff --git a/juick-server/src/main/java/com/juick/server/api/activity/Profile.java b/juick-server/src/main/java/com/juick/server/api/activity/Profile.java index a46db7fe..6fdd9d8c 100644 --- a/juick-server/src/main/java/com/juick/server/api/activity/Profile.java +++ b/juick-server/src/main/java/com/juick/server/api/activity/Profile.java @@ -231,10 +231,10 @@ public class Profile { public ResponseEntity processInbox(@RequestBody Activity activity, @RequestHeader(name = "Host") String host, @RequestHeader(name = "Date") String date, - @RequestHeader(name = "Digest") String digest, + @RequestHeader(name = "Digest", required = false) String digest, @RequestHeader(name = "Content-Type") String contentType, - @RequestHeader(name = "User-Agent") String userAgent, - @RequestHeader(name = "Signature") String signature) { + @RequestHeader(name = "User-Agent", required = false) String userAgent, + @RequestHeader(name = "Signature", required = false) String signature) { UriComponents componentsBuilder = ServletUriComponentsBuilder.fromCurrentRequestUri().build(); Map headers = new HashMap<>(); headers.put("host", host); -- cgit v1.2.3