Skip to content

Commit

Permalink
[#11062] Change url info in pinpoint error data
Browse files Browse the repository at this point in the history
  • Loading branch information
ga-ram committed May 27, 2024
1 parent 7bbbe69 commit 872a36e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public static class RequestInfo {
public RequestInfo(WebRequest request) {
if (request instanceof ServletWebRequest webRequest) {
this.method = webRequest.getRequest().getMethod();
this.url = String.valueOf(webRequest.getRequest().getRequestURL());
this.url = String.valueOf(webRequest.getAttribute("jakarta.servlet.error.request_uri", 0));
this.headers = getRequestHeader(webRequest);
this.parameters = request.getParameterMap();
} else {
Expand Down

0 comments on commit 872a36e

Please sign in to comment.