Browse Source

Merge branch '6.1.x'

pull/33090/head
Sam Brannen 2 years ago
parent
commit
e6b77d301d
  1. 2
      spring-web/src/main/java/org/springframework/http/client/JdkClientHttpRequest.java
  2. 4
      spring-webmvc/src/main/java/org/springframework/web/servlet/view/AbstractView.java

2
spring-web/src/main/java/org/springframework/http/client/JdkClientHttpRequest.java

@ -176,7 +176,7 @@ class JdkClientHttpRequest extends AbstractStreamingClientHttpRequest { @@ -176,7 +176,7 @@ class JdkClientHttpRequest extends AbstractStreamingClientHttpRequest {
/**
* By default, {@link HttpRequest} does not allow {@code Connection},
* {@code Content-Length}, {@code Expect}, {@code Host}, or {@code Upgrade}
* headers to be set, but this can be overriden with the
* headers to be set, but this can be overridden with the
* {@code jdk.httpclient.allowRestrictedHeaders} system property.
* @see jdk.internal.net.http.common.Utils#getDisallowedHeaders()
*/

4
spring-webmvc/src/main/java/org/springframework/web/servlet/view/AbstractView.java

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*
* Copyright 2002-2022 the original author or authors.
* Copyright 2002-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -495,7 +495,7 @@ public abstract class AbstractView extends WebApplicationObjectSupport implement @@ -495,7 +495,7 @@ public abstract class AbstractView extends WebApplicationObjectSupport implement
}
protected String formatViewName() {
return (getBeanName() != null ? "name '" + getBeanName() + "'" : "[" + getClass().getSimpleName() + "]");
return (getBeanName() != null ? "name [" + getBeanName() + "]" : "[" + getClass().getSimpleName() + "]");
}
}

Loading…
Cancel
Save