diff options
author | Vitaly Takmazov | 2018-10-05 10:25:18 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-10-05 10:25:18 +0300 |
commit | 07ac8017afa883f0fb3748a02bc1236882bfd06c (patch) | |
tree | 124e20b5d5d31d8f1d8bcecba6813b732f9e4f3c /juick-server/src/main/java/com/juick/server/api | |
parent | 887bd23dc34749cee0eced8ec06cb11deb486c0c (diff) |
fix 2 tests
Diffstat (limited to 'juick-server/src/main/java/com/juick/server/api')
-rw-r--r-- | juick-server/src/main/java/com/juick/server/api/activity/Profile.java | 2 |
1 files changed, 1 insertions, 1 deletions
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 146e78f0..a21601db 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 @@ -245,7 +245,7 @@ public class Profile { @RequestHeader(name = "Signature", required = false) String signature) throws JsonProcessingException { UriComponents componentsBuilder = ServletUriComponentsBuilder.fromCurrentRequestUri().build(); Map<String, String> headers = new HashMap<>(); - headers.put("host", host); + headers.put("host", host.split(":", 2)[0]); headers.put("date", date); headers.put("digest", digest); headers.put("content-type", contentType); |