diff options
-rw-r--r-- | container-core/src/main/java/com/yahoo/container/jdisc/HttpRequest.java | 11 | ||||
-rw-r--r-- | vespaclient-container-plugin/src/main/java/com/yahoo/document/restapi/resource/RestApi.java | 2 |
2 files changed, 11 insertions, 2 deletions
diff --git a/container-core/src/main/java/com/yahoo/container/jdisc/HttpRequest.java b/container-core/src/main/java/com/yahoo/container/jdisc/HttpRequest.java index fa875e53875..e54cd6817b1 100644 --- a/container-core/src/main/java/com/yahoo/container/jdisc/HttpRequest.java +++ b/container-core/src/main/java/com/yahoo/container/jdisc/HttpRequest.java @@ -461,7 +461,7 @@ public class HttpRequest { } /** - * Get the full URI corresponding to this request. + * Get the full normalized URI corresponding to this request. * * @return the URI of this request */ @@ -470,6 +470,15 @@ public class HttpRequest { } /** + * Get the full original URI corresponding to this request. + * + * @return the URI of this request + */ + public URI getRawUri() { + return parentRequest.getRawUri(); + } + + /** * Access the underlying JDisc for this HTTP request. * * @return the corresponding JDisc request instance diff --git a/vespaclient-container-plugin/src/main/java/com/yahoo/document/restapi/resource/RestApi.java b/vespaclient-container-plugin/src/main/java/com/yahoo/document/restapi/resource/RestApi.java index 6a7797c20a7..fc6d20c06b8 100644 --- a/vespaclient-container-plugin/src/main/java/com/yahoo/document/restapi/resource/RestApi.java +++ b/vespaclient-container-plugin/src/main/java/com/yahoo/document/restapi/resource/RestApi.java @@ -115,7 +115,7 @@ public class RestApi extends LoggingRequestHandler { protected HttpResponse handleInternal(HttpRequest request) { final RestUri restUri; try { - restUri = new RestUri(request.getUri()); + restUri = new RestUri(request.getRawUri()); } catch (RestApiException e) { return e.getResponse(); } catch (Exception e2) { |