Commit Graph

413 Commits

Author SHA1 Message Date
Tomo Suzuki 88a30eb77b Updating project URL to include '-ga' suffix 2021-04-02 22:37:23 +02:00
Gary Gregory 3a68e74ec8 Remove clone() method that only calls super in Object. 2020-12-02 16:58:08 -05:00
Gary Gregory 50ec2d075d Remove redundant modifiers.
- All methods in a final class are already final.
- All members of an interface are public.
- All inner enums are static.
2020-11-24 15:33:07 -05:00
Gary Gregory 6467e3c1e1 Use Arrays.fill(). 2020-11-24 15:33:07 -05:00
Oleg Kalnichevski d6520e797d Upgraded HttpClient version to 4.5.14-SNAPSHOT 2020-10-06 09:26:06 +02:00
dirkhenselin 8151d9e51a Avoid updating Content-Length header in a 304 response.
I observed the following problem: `Transfer-Encoding` and
`Content-Length` headers should be mutually exclusive and because I use
chunked transfer, the `Transfer-Encoding` header is set in the response
while the `Content-Length` header is not. In case of a 304 during a
revalidation, the header contains Content-Length=0. Probably a proxy is
responsible for this, just like the comment "Some well-known proxies
respond with Content-Length=0, when returning 304" in the method
CachedHttpResponseGenerator::addMissingContentLengthHeader is saying. In
CacheEntryUpdater::mergeHeaders the Content-Length=0 is merged into the
cached entry, but the cached entry contains also a `Transfer-Encoding`
header, so in the cached entry these headers aren't mutually exclusive
anymore. Because of the `Transfer-Encoding` header the method
CachedHttpResponseGenerator::addMissingContentLengthHeader isn't fixing
the `Content-Length` header and Content-Length=0 causes returning null
instead of the cached content. IMHO the `Content-Length` header should
not be merged into the cached response in case of a 304, at least if the
cached entry contains a `Transfer-Encoding` header.
2020-10-03 12:30:11 +02:00
Oleg Kalnichevski c87a3488c4 Upgraded HttpClient version to 4.5.13-SNAPSHOT 2020-03-07 10:04:58 +01:00
Oleg Kalnichevski ca0f84933a Upgraded HttpClient version to 4.5.12-SNAPSHOT 2020-01-18 10:49:39 +01:00
Olof Larsson 3d09a43008 HTTPCLIENT-2023: Allow nested arrays and all primitive types in DefaultHttpCacheEntrySerializer 2019-11-08 09:47:55 +01:00
Olof Larsson 4a354148f0 HTTPCLIENT-2022: Use message parameter in HttpCacheEntrySerializationException constructor 2019-11-06 18:39:21 +01:00
Oleg Kalnichevski 94dec12105 Upgraded HttpClient version to 4.5.11-SNAPSHOT 2019-09-09 11:40:16 +02:00
Oleg Kalnichevski 6992339b6c Upgraded HttpClient version to 4.5.10-SNAPSHOT 2019-06-11 11:12:49 +02:00
Artem Smotrakov c8068487fb HTTPCLIENT-1976: Unsafe deserialization in DefaultHttpCacheEntrySerializer 2019-04-02 12:16:03 +02:00
Oleg Kalnichevski 2035aaed33 Upgraded HttpClient version to 4.5.9-SNAPSHOT 2019-03-30 10:35:49 +01:00
Oleg Kalnichevski 2004eef668 HTTPCLIENT-1968: Preserve escaped PATHSAFE characters when normalizing URI path segments 2019-02-16 13:22:40 +01:00
Oleg Kalnichevski 4a463ebf4e URI normalization code to use URLEncodedUtils#parsePathSegments method to split path segments 2019-02-16 13:06:07 +01:00
Oleg Kalnichevski 030dbffe17 Improved cache key generation (ported from HttpCore master) 2019-02-16 12:02:15 +01:00
Tamas Cservenak 4093a3015d HTTPCLIENT-1968: Make normalization of URI paths optional
Make it driven by RequestConfig.
2019-02-16 11:50:11 +01:00
Jayson Raymond d150f5abae Some well known proxies respond with Content-Length=0, when returning 304. For robustness, always use the cached entity's content length, as modern browsers do. 2019-02-07 19:15:52 +01:00
Oleg Kalnichevski fc4644de9e Upgraded HttpClient version to 4.5.8-SNAPSHOT 2019-01-24 15:52:01 +01:00
Oleg Kalnichevski c4d6b3fe59 Upgraded HttpComponents Parent to version 11 2018-11-03 11:35:58 +01:00
Oleg Kalnichevski c04ffa17ce Added missing @deprecated javadoc tags; fixed style check violations 2018-11-03 11:34:35 +01:00
Gary Gregory e6c226d5f6 - Always use blocks
- Add missing serial version ID (default 1L)
- Camel-case names.
- Don't nest in else clause unnecessarily.
- Remove declared exceptions that are not thrown (but don't break BC.)
- Remove redundant superinterface
- Access static methods directly
- Better local var names.
2018-08-14 20:54:41 +02:00
Oleg Kalnichevski c72ccfaba8 HTTPCLIENT-1929: Corrected Automatic-Module-Name entries for HttpClient Fluent, HttpClient Windows and HttpClient Cache 2018-07-09 13:58:49 +02:00
Oleg Kalnichevski ce33e88b1d Upgraded HttpClient version to 4.5.7-SNAPSHOT 2018-07-09 10:03:20 +02:00
Oleg Kalnichevski 1480958ce7 HttpClient 4.5.6 release 2018-07-05 13:39:40 +02:00
Varun Nandi 7c193f6141 Add Automatic-Module-Name in manifest so Java9 modular applications can depend on this library 2018-06-07 10:46:31 -07:00
Oleg Kalnichevski 6374006e10 Upgraded HttpClient version to 4.5.6-SNAPSHOT 2018-01-22 09:49:22 +01:00
Oleg Kalnichevski 6f4550ff97 HttpClient 4.5.5 release 2018-01-18 13:04:50 +01:00
Sudheera Palihakkara 0593c591ad HTTPCLIENT-1690: Updated a test case 2018-01-15 18:31:00 +08:00
Sudheera Palihakkara f1f3a38763 HTTPCLIENT-1690: Avoid merging Content-Encoding headers coming with 304 status to cache entry, port mergeHeaders method from master 2018-01-15 10:00:03 +01:00
Oleg Kalnichevski a077bc6ab8 Upgraded HttpClient version to 4.5.5-SNAPSHOT 2017-11-30 11:27:42 +01:00
Oleg Kalnichevski cd166a737c HttpClient 4.5.4 release 2017-11-27 10:36:12 +01:00
Oleg Kalnichevski cfbbea0ee3 Fixed NPE in case of a missing Max-Forwards header 2017-10-16 13:49:31 +02:00
Oleg Kalnichevski aa0e53cc0c Removed explicit plugin version declaration (should be inherited from the parent POM) 2017-10-04 11:54:52 +02:00
Gary Gregory 61529d1f88 Checkstyle fixes: Use final and tab police. 2017-07-12 17:29:17 -07:00
Leandro Nunes dac57c57f6 Closes PR #77
Avoid fetching the cached entity twice on cache hit.
2017-05-29 21:14:36 +02:00
Leandro Nunes 10ab37b775 Removing unnecessary checks for cache invalidation calls. 2017-05-18 15:12:05 +01:00
Oleg Kalnichevski 90fd3936da Better handling of missing content-type header in OPTIONS with entity
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.6.x@1787697 13f79535-47bb-0310-9956-ffa450edef68
2017-05-13 11:13:36 +02:00
Oleg Kalnichevski 61bf8ba35e fix cache NFE for big content length
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.5.x@1790037 13f79535-47bb-0310-9956-ffa450edef68
2017-05-13 11:08:37 +02:00
Gary D. Gregory 4aa07e6c51 Add missing '@Override' annotations.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.5.x@1788707 13f79535-47bb-0310-9956-ffa450edef68
2017-05-13 11:07:09 +02:00
Oleg Kalnichevski ef95068aef Upgraded HttpClient version to 4.5.4-SNAPSHOT
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.5.x@1780344 13f79535-47bb-0310-9956-ffa450edef68
2017-01-26 09:53:49 +00:00
Oleg Kalnichevski 0514407d8c Upgraded HttpCore to version 4.4.5
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.5.x@1770506 13f79535-47bb-0310-9956-ffa450edef68
2016-11-19 16:40:54 +00:00
Oleg Kalnichevski 85b0047f6e Upgraded HttpClient version to 4.5.3-SNAPSHOT
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.5.x@1732457 13f79535-47bb-0310-9956-ffa450edef68
2016-02-26 11:39:03 +00:00
Gary D. Gregory 9d5dde271f Add final modifier to private fields.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.5.x@1726967 13f79535-47bb-0310-9956-ffa450edef68
2016-01-27 09:00:25 +00:00
Oleg Kalnichevski b6c1516e61 Upgraded HttpClient version to 4.5.2-SNAPSHOT
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.5.x@1703168 13f79535-47bb-0310-9956-ffa450edef68
2015-09-15 12:18:02 +00:00
Oleg Kalnichevski 12482402c4 Upgraded HttpClient version to 4.5.1-SNAPSHOT
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.5.x@1683489 13f79535-47bb-0310-9956-ffa450edef68
2015-06-04 08:41:39 +00:00
Michael Osipov fc250e5616 HTTPCLIENT-1623: Several files still refer to Java 1.5
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1662569 13f79535-47bb-0310-9956-ffa450edef68
2015-02-26 20:59:56 +00:00
Oleg Kalnichevski 5927ed1966 Upgraded project version to 4.5-alpha1-SNAPSHOT
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1662491 13f79535-47bb-0310-9956-ffa450edef68
2015-02-26 16:35:41 +00:00
Oleg Kalnichevski 95754d776c HTTPCLIENT-1244: convert unit tests for cache module to use Mockito
Contributed by Joseph Walton <joe at kafsemo dot org>

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1661658 13f79535-47bb-0310-9956-ffa450edef68
2015-02-23 12:42:47 +00:00