Merge branch '6.0.x'
This commit is contained in:
@@ -738,7 +738,7 @@ class DefaultWebClient implements WebClient {
|
||||
|
||||
private final ClientRequestObservationContext observationContext;
|
||||
|
||||
public ObservationFilterFunction(ClientRequestObservationContext observationContext) {
|
||||
ObservationFilterFunction(ClientRequestObservationContext observationContext) {
|
||||
this.observationContext = observationContext;
|
||||
}
|
||||
|
||||
|
||||
@@ -121,14 +121,14 @@ class DefaultServerResponseBuilder implements ServerResponse.BodyBuilder {
|
||||
|
||||
@Override
|
||||
public ServerResponse.BodyBuilder allow(HttpMethod... allowedMethods) {
|
||||
Assert.notNull(allowedMethods, "Http allowedMethod must not be null");
|
||||
Assert.notNull(allowedMethods, "Http allowedMethods must not be null");
|
||||
this.headers.setAllow(new LinkedHashSet<>(Arrays.asList(allowedMethods)));
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ServerResponse.BodyBuilder allow(Set<HttpMethod> allowedMethods) {
|
||||
Assert.notNull(allowedMethods, "Http allowedMethod must not be null");
|
||||
Assert.notNull(allowedMethods, "Http allowedMethods must not be null");
|
||||
this.headers.setAllow(allowedMethods);
|
||||
return this;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user