You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@knox.apache.org by mo...@apache.org on 2020/09/09 13:15:29 UTC
[knox] branch master updated: KNOX-2437 The request url does not
have to be coded (#370)
This is an automated email from the ASF dual-hosted git repository.
more pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/knox.git
The following commit(s) were added to refs/heads/master by this push:
new 4334689 KNOX-2437 The request url does not have to be coded (#370)
4334689 is described below
commit 433468916e079a0dd92ef7a294eccd2ad0875767
Author: apiloqbc <48...@users.noreply.github.com>
AuthorDate: Wed Sep 9 15:15:23 2020 +0200
KNOX-2437 The request url does not have to be coded (#370)
---
.../org/apache/knox/gateway/websockets/GatewayWebsocketHandler.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gateway-server/src/main/java/org/apache/knox/gateway/websockets/GatewayWebsocketHandler.java b/gateway-server/src/main/java/org/apache/knox/gateway/websockets/GatewayWebsocketHandler.java
index 0d6d8d2..e88306a 100644
--- a/gateway-server/src/main/java/org/apache/knox/gateway/websockets/GatewayWebsocketHandler.java
+++ b/gateway-server/src/main/java/org/apache/knox/gateway/websockets/GatewayWebsocketHandler.java
@@ -113,7 +113,7 @@ public class GatewayWebsocketHandler extends WebSocketHandler
try {
final URI requestURI = req.getRequestURI();
- final String path = requestURI.getPath();
+ final String path = requestURI.getRawPath();
/* URL used to connect to websocket backend */
final String backendURL = getMatchedBackendURL(path, requestURI);