Skip to content

Commit 4d7e6fb

Browse files
authored
Release 21.9 (#21)
1 parent c8cc4ea commit 4d7e6fb

4 files changed

Lines changed: 13 additions & 8 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
[![Maven metadata URL](https://img.shields.io/maven-metadata/v?metadataUrl=https%3A%2F%2Frepository.aspose.cloud%2Frepo%2Fcom%2Faspose%2Faspose-barcode-cloud%2Fmaven-metadata.xml)](https://repository.aspose.cloud/repo/com/aspose/aspose-barcode-cloud/)
66

77
- API version: 3.0
8-
- SDK version: 21.7.2
8+
- SDK version: 21.9.0
99

1010
## Demo applications
1111

@@ -66,7 +66,7 @@ Add this dependency to your project's POM:
6666
<dependency>
6767
<groupId>com.aspose</groupId>
6868
<artifactId>aspose-barcode-cloud</artifactId>
69-
<version>21.7.2</version>
69+
<version>21.9.0</version>
7070
<scope>compile</scope>
7171
</dependency>
7272
```
@@ -81,7 +81,7 @@ mvn clean package
8181

8282
Then manually install the following JARs:
8383

84-
- `target/aspose-barcode-cloud-21.7.2.jar`
84+
- `target/aspose-barcode-cloud-21.9.0.jar`
8585
- `target/lib/*.jar`
8686

8787
## Getting Started

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<artifactId>aspose-barcode-cloud</artifactId>
66
<packaging>jar</packaging>
77
<name>aspose-barcode-cloud</name>
8-
<version>21.7.2</version>
8+
<version>21.9.0</version>
99
<url>https://www.aspose.cloud</url>
1010
<description>Aspose.BarCode Cloud SDK for Java</description>
1111
<scm>

src/main/java/com/aspose/barcode/cloud/ApiClient.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
public class ApiClient {
6363

6464
public final String apiVersion = "v3.0";
65-
public final String clientVersion = "21.7.2";
65+
public final String clientVersion = "21.9.0";
6666
private String baseUrl = "https://api.aspose.cloud";
6767
private String clientId;
6868
private String clientSecret;
@@ -114,7 +114,7 @@ protected ApiClient() {
114114
json = new JSON();
115115

116116
// Set default User-Agent.
117-
setUserAgent("Swagger-Codegen/21.7.2/java");
117+
setUserAgent("Swagger-Codegen/21.9.0/java");
118118

119119
addDefaultHeader("x-aspose-client", "java sdk");
120120
addDefaultHeader("x-aspose-client-version", clientVersion);

src/main/java/com/aspose/barcode/cloud/api/BarcodeApi.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,9 @@ protected com.squareup.okhttp.Call postBarcodeRecognizeFromUrlOrContentCall(
713713
final String accept = apiClient.selectHeaderAccept(accepts);
714714
if (accept != null) headerParams.put("Accept", accept);
715715

716-
final String[] contentTypes = {"multipart/form-data", "application/octet-stream"};
716+
final String[] contentTypes = {
717+
"multipart/form-data", "application/x-www-form-urlencoded", "application/octet-stream"
718+
};
717719
final String contentType = apiClient.selectHeaderContentType(contentTypes);
718720
headerParams.put("Content-Type", contentType);
719721

@@ -1111,7 +1113,10 @@ protected com.squareup.okhttp.Call putBarcodeGenerateFileCall(
11111113
if (accept != null) headerParams.put("Accept", accept);
11121114

11131115
final String[] contentTypes = {
1114-
"application/json", "application/xml", "multipart/form-data"
1116+
"multipart/form-data",
1117+
"application/x-www-form-urlencoded",
1118+
"application/json",
1119+
"application/xml"
11151120
};
11161121
final String contentType = apiClient.selectHeaderContentType(contentTypes);
11171122
headerParams.put("Content-Type", contentType);

0 commit comments

Comments
 (0)