Skip to content

1.6.0.4 HttpClient fix for textual body

Compare
Choose a tag to compare
@michaelgantman michaelgantman released this 04 Jul 22:05
· 21 commits to master since this release

This is a bug fix release. It fixes a bug for HttpClient for methods sendHttpRequest(...) and sendHttpRequestForBinaryResponse(...) that allow passing a textual body content for request (those method that have the last parameter String data). When Textual body content was converted into bytes just before sending request the conversion added some 0-value bytes at the end and that caused request to fail in some servers. This is fixed in this release.


Another change is that a new dependency was added:

<dependency>
          <groupId>javax.annotation</groupId>
          <artifactId>javax.annotation-api</artifactId>
          <version>1.3.2</version>
 </dependency>

This is to include classes such as javax.annotation.PostConstruct and javax.annotation.PreDestroy. Up until java version 11 those classes were part of JDK, but in the later versions they were excluded and for seamless use of the library the above dependency was added so it would work without the need to add such dependency externally with later java versions