|
1 | 1 | /*
|
2 |
| - * Copyright 2002-2017 the original author or authors. |
| 2 | + * Copyright 2002-2018 the original author or authors. |
3 | 3 | *
|
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License");
|
5 | 5 | * you may not use this file except in compliance with the License.
|
|
30 | 30 | import org.springframework.util.concurrent.ListenableFuture;
|
31 | 31 |
|
32 | 32 | /**
|
33 |
| - * {@link org.springframework.http.client.ClientHttpRequest} implementation that uses |
34 |
| - * standard Java facilities to execute streaming requests. Created via the {@link |
35 |
| - * org.springframework.http.client.SimpleClientHttpRequestFactory}. |
| 33 | + * {@link org.springframework.http.client.ClientHttpRequest} implementation |
| 34 | + * that uses standard Java facilities to execute streaming requests. Created |
| 35 | + * via the {@link org.springframework.http.client.SimpleClientHttpRequestFactory}. |
36 | 36 | *
|
37 | 37 | * @author Arjen Poutsma
|
38 | 38 | * @since 3.0
|
39 | 39 | * @see org.springframework.http.client.SimpleClientHttpRequestFactory#createRequest
|
| 40 | + * @see org.springframework.http.client.support.AsyncHttpAccessor |
| 41 | + * @see org.springframework.web.client.AsyncRestTemplate |
40 | 42 | * @deprecated as of Spring 5.0, with no direct replacement
|
41 | 43 | */
|
42 | 44 | @Deprecated
|
@@ -84,7 +86,7 @@ public URI getURI() {
|
84 | 86 | protected OutputStream getBodyInternal(HttpHeaders headers) throws IOException {
|
85 | 87 | if (this.body == null) {
|
86 | 88 | if (this.outputStreaming) {
|
87 |
| - int contentLength = (int) headers.getContentLength(); |
| 89 | + long contentLength = headers.getContentLength(); |
88 | 90 | if (contentLength >= 0) {
|
89 | 91 | this.connection.setFixedLengthStreamingMode(contentLength);
|
90 | 92 | }
|
|
0 commit comments