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 <thanh.nguyen-ky@klarna.com>
Co-authored-by: Davis, Kevin <kdavisk6@gmail.com>
  • Loading branch information
3 people committed Mar 7, 2021
1 parent e4e9d05 commit c4b89c2
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

This comment has been minimized.

Copy link
@mightymiss666

mightymiss666 Mar 13, 2021

Little bit more

* 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 @@ -137,7 +137,7 @@ SimpleHttpRequest toClassicHttpRequest(Request request,
// 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 c4b89c2

Please sign in to comment.