aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-03-21 09:08:59 +0300
committerGravatar Vitaly Takmazov2018-03-21 09:08:59 +0300
commit5e6d2e46d5770041676a25353ace4c49f15f6cc6 (patch)
tree27c6fd584fc63e267ec5d0b15ac198e418bb8ec1 /juick-server/src
parentd0d6571d36dadd8348cb484b55c6c4b18be37303 (diff)
ws: redirect when no upgrade header
Diffstat (limited to 'juick-server/src')
-rw-r--r--juick-server/src/main/java/com/juick/server/api/Index.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/juick-server/src/main/java/com/juick/server/api/Index.java b/juick-server/src/main/java/com/juick/server/api/Index.java
index be79bf98..eafde85b 100644
--- a/juick-server/src/main/java/com/juick/server/api/Index.java
+++ b/juick-server/src/main/java/com/juick/server/api/Index.java
@@ -44,7 +44,7 @@ public class Index {
@Inject
private XMPPServer xmpp;
- @RequestMapping(value = "/", method = RequestMethod.GET, headers = "Connection!=Upgrade")
+ @RequestMapping(value = { "/", "/ws/" }, method = RequestMethod.GET, headers = "Connection!=Upgrade")
public ResponseEntity<Void> description() {
URI redirectUri = ServletUriComponentsBuilder.fromCurrentRequestUri().path("/swagger-ui.html").build().toUri();
return ResponseEntity.status(HttpStatus.MOVED_PERMANENTLY).location(redirectUri).build();