Skip to content

Commit

Permalink
Merge pull request #11 from OSGP/feature/FDP-1853-proxy
Browse files Browse the repository at this point in the history
FDP-1853: Also remove 'notifications' from path
  • Loading branch information
smvdheijden authored Dec 15, 2023
2 parents d9f8c34 + eef226d commit 9bc7174
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public class SoapEndpoint implements HttpRequestHandler {
private static final Logger LOGGER = LoggerFactory.getLogger(SoapEndpoint.class);

private static final String URL_PROXY_SERVER = "/proxy-server";
private static final String URL_NOTIFICATIONS = "/proxy-server/notifications";

private static final int INVALID_CUSTOM_TIME_OUT = -1;

Expand Down Expand Up @@ -211,7 +212,7 @@ private String sanitize(final String value) {
}

private String getContextForRequestType(final HttpServletRequest request) {
return request.getRequestURI().replace(URL_PROXY_SERVER, "");
return request.getRequestURI().replace(URL_NOTIFICATIONS, "").replace(URL_PROXY_SERVER, "");
}

private String readSoapPayload(final HttpServletRequest request) {
Expand Down

0 comments on commit 9bc7174

Please sign in to comment.