From 0978cc629abe80fbb0999b9408b15dca1349f3c3 Mon Sep 17 00:00:00 2001 From: Arjen Poutsma Date: Tue, 1 Dec 2020 11:19:10 +0100 Subject: [PATCH] Polishing --- .../web/servlet/function/DefaultServerRequest.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spring-webmvc/src/main/java/org/springframework/web/servlet/function/DefaultServerRequest.java b/spring-webmvc/src/main/java/org/springframework/web/servlet/function/DefaultServerRequest.java index f0fba03886..da9bd4b62e 100644 --- a/spring-webmvc/src/main/java/org/springframework/web/servlet/function/DefaultServerRequest.java +++ b/spring-webmvc/src/main/java/org/springframework/web/servlet/function/DefaultServerRequest.java @@ -270,6 +270,10 @@ class DefaultServerRequest implements ServerRequest { return Optional.ofNullable(this.serverHttpRequest.getPrincipal()); } + @Override + public String toString() { + return String.format("HTTP %s %s", method(), path()); + } static Optional checkNotModified( HttpServletRequest servletRequest, @Nullable Instant lastModified, @Nullable String etag) {