Browse Source

Polishing

pull/26197/head
Arjen Poutsma 4 years ago
parent
commit
0978cc629a
  1. 4
      spring-webmvc/src/main/java/org/springframework/web/servlet/function/DefaultServerRequest.java

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

@ -270,6 +270,10 @@ class DefaultServerRequest implements ServerRequest { @@ -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<ServerResponse> checkNotModified(
HttpServletRequest servletRequest, @Nullable Instant lastModified, @Nullable String etag) {

Loading…
Cancel
Save