diff options
author | Vitaly Takmazov | 2022-12-28 03:08:20 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2022-12-28 03:08:20 +0300 |
commit | c59988a0862e1acc2f5805b327db0bd00569d8e1 (patch) | |
tree | 11ae8123bc05baf1a03ddebb002ec907c059bb31 /src/test/java/com/juick/server | |
parent | 8cc6c06cb1202bca5f2475be095916b80fcd923c (diff) |
webfinger: respond 404 on invalid resource request
Diffstat (limited to 'src/test/java/com/juick/server')
-rw-r--r-- | src/test/java/com/juick/server/tests/ServerTests.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/java/com/juick/server/tests/ServerTests.java b/src/test/java/com/juick/server/tests/ServerTests.java index 7d0aa019..541c2fc1 100644 --- a/src/test/java/com/juick/server/tests/ServerTests.java +++ b/src/test/java/com/juick/server/tests/ServerTests.java @@ -1748,6 +1748,8 @@ public class ServerTests { .andExpect(jsonPath("$.links[0].href", is("http://localhost:8080/u/ugnich"))); mockMvc.perform(get("/.well-known/webfinger?resource=acct:durov@localhost")) .andExpect(status().isNotFound()); + mockMvc.perform(get("/.well-known/webfinger?resource=acct:@localhost")) + .andExpect(status().isNotFound()); } @Test |