Disable "failOnServerError" in ReactorClientHttpRequest
This commit disables the "failOnServerError" feature on the `HttpClientRequest`, as wrapped by ReactorClientHttpRequest. 5xx errors are supposed to be dealt with in the WebClient, not in the lower-level components. Issue: SPR-15739
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2016 the original author or authors.
|
||||
* Copyright 2002-2017 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.
|
||||
@@ -53,7 +53,7 @@ public class ReactorClientHttpRequest extends AbstractClientHttpRequest {
|
||||
HttpClientRequest httpRequest) {
|
||||
this.httpMethod = httpMethod;
|
||||
this.uri = uri;
|
||||
this.httpRequest = httpRequest.failOnClientError(false);
|
||||
this.httpRequest = httpRequest.failOnClientError(false).failOnServerError(false);
|
||||
this.bufferFactory = new NettyDataBufferFactory(httpRequest.alloc());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user