Skip to content

Commit

Permalink
Upgrade httpclient5 to GA version 5.0.3 (#1373)
Browse files Browse the repository at this point in the history
* Upgrade httpclient5 to GA version 5.0.3

* Updating License Headers for 2021

Co-authored-by: Thanh Nguyen <[email protected]>
Co-authored-by: Davis, Kevin <[email protected]>
  • Loading branch information
3 people authored Mar 7, 2021
1 parent f806986 commit 1cda4d7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions hc5/pom.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2012-2020 The Feign Authors
Copyright 2012-2021 The Feign Authors
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
in compliance with the License. You may obtain a copy of the License at
Expand Down Expand Up @@ -40,7 +40,7 @@
<dependency>
<groupId>org.apache.httpcomponents.client5</groupId>
<artifactId>httpclient5</artifactId>
<version>5.0-beta7</version>
<version>5.0.3</version>
</dependency>

<dependency>
Expand Down
4 changes: 2 additions & 2 deletions hc5/src/main/java/feign/hc5/AsyncApacheHttp5Client.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright 2012-2020 The Feign Authors
* Copyright 2012-2021 The Feign Authors
*
* <p>Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of the License at
Expand Down Expand Up @@ -137,7 +137,7 @@ SimpleHttpRequest toClassicHttpRequest(Request request, Request.Options options)
// final Body requestBody = request.requestBody();
final byte[] data = request.body();
if (data != null) {
httpRequest.setBodyBytes(data, getContentType(request));
httpRequest.setBody(data, getContentType(request));
}

return httpRequest;
Expand Down

0 comments on commit 1cda4d7

Please sign in to comment.