@@ -29,7 +29,7 @@ public class ServerResponseCaptureFilter extends HttpFiltersAdapter {
2929 /**
3030 * Populated by serverToProxyResponse() when processing the HttpResponse object
3131 */
32- private HttpResponse httpResponse ;
32+ private volatile HttpResponse httpResponse ;
3333
3434 /**
3535 * Populated by serverToProxyResponse() as it receives HttpContent responses. If the response is chunked, it will
@@ -41,27 +41,27 @@ public class ServerResponseCaptureFilter extends HttpFiltersAdapter {
4141 * Populated when processing the LastHttpContent. If the response is compressed and decompression is requested,
4242 * this contains the entire decompressed response. Otherwise it contains the raw response.
4343 */
44- private byte [] fullResponseContents ;
44+ private volatile byte [] fullResponseContents ;
4545
4646 /**
4747 * Populated by serverToProxyResponse() when it processes the LastHttpContent object.
4848 */
49- private HttpHeaders trailingHeaders ;
49+ private volatile HttpHeaders trailingHeaders ;
5050
5151 /**
5252 * Set to true when processing the LastHttpContent if the server indicates there is a content encoding.
5353 */
54- private boolean responseCompressed ;
54+ private volatile boolean responseCompressed ;
5555
5656 /**
5757 * Set to true when processing the LastHttpContent if decompression was requested and successful.
5858 */
59- private boolean decompressionSuccessful ;
59+ private volatile boolean decompressionSuccessful ;
6060
6161 /**
6262 * Populated when processing the LastHttpContent.
6363 */
64- private String contentEncoding ;
64+ private volatile String contentEncoding ;
6565
6666 /**
6767 * User option indicating compressed content should be uncompressed.
0 commit comments