Skip to content

Commit 0978cc6

Browse files
committed
Polishing
1 parent 0c82562 commit 0978cc6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

spring-webmvc/src/main/java/org/springframework/web/servlet/function/DefaultServerRequest.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,10 @@ public Optional<Principal> principal() {
270270
return Optional.ofNullable(this.serverHttpRequest.getPrincipal());
271271
}
272272

273+
@Override
274+
public String toString() {
275+
return String.format("HTTP %s %s", method(), path());
276+
}
273277

274278
static Optional<ServerResponse> checkNotModified(
275279
HttpServletRequest servletRequest, @Nullable Instant lastModified, @Nullable String etag) {

0 commit comments

Comments
 (0)