Skip to content

Commit

Permalink
Merge branch 'main' into rsh/contentLengthUploadFix
Browse files Browse the repository at this point in the history
  • Loading branch information
baywet authored Feb 21, 2024
2 parents 0c608ee + 0c0514d commit 2dd6776
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 17 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changed

## [1.0.3] - 2023-02-19
## [1.0.4] - 2023-02-22

### Changed

- Added contentLength property to RequestInformation to facilitate in setting the content length of the Okhttp3 RequestBody object within the OkhttpRequestAdapter.

## [1.0.3] - 2024-02-21

### Changed

- Fixed compatibility with Java 8 by replacing `isBlank` with `Compatibility.isBlank`

## [1.0.2] - 2024-02-13

### Changed
Expand Down
28 changes: 14 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ Read more about Kiota [here](https://github.com/microsoft/kiota/blob/main/README
In `build.gradle` in the `dependencies` section:

```Groovy
implementation 'com.microsoft.kiota:microsoft-kiota-abstractions:1.0.0'
implementation 'com.microsoft.kiota:microsoft-kiota-authentication-azure:1.0.0'
implementation 'com.microsoft.kiota:microsoft-kiota-http-okHttp:1.0.0'
implementation 'com.microsoft.kiota:microsoft-kiota-serialization-json:1.0.0'
implementation 'com.microsoft.kiota:microsoft-kiota-serialization-text:1.0.0'
implementation 'com.microsoft.kiota:microsoft-kiota-serialization-form:1.0.0'
implementation 'com.microsoft.kiota:microsoft-kiota-serialization-multipart:1.0.0'
implementation 'com.microsoft.kiota:microsoft-kiota-abstractions:1.0.3'
implementation 'com.microsoft.kiota:microsoft-kiota-authentication-azure:1.0.3'
implementation 'com.microsoft.kiota:microsoft-kiota-http-okHttp:1.0.3'
implementation 'com.microsoft.kiota:microsoft-kiota-serialization-json:1.0.3'
implementation 'com.microsoft.kiota:microsoft-kiota-serialization-text:1.0.3'
implementation 'com.microsoft.kiota:microsoft-kiota-serialization-form:1.0.3'
implementation 'com.microsoft.kiota:microsoft-kiota-serialization-multipart:1.0.3'
```

### With Maven:
Expand All @@ -38,37 +38,37 @@ In `pom.xml` in the `dependencies` section:
<dependency>
<groupId>com.microsoft.kiota</groupId>
<artifactId>microsoft-kiota-abstractions</artifactId>
<version>1.0.0</version>
<version>1.0.3</version>
</dependency>
<dependency>
<groupId>com.microsoft.kiota</groupId>
<artifactId>microsoft-kiota-authentication-azure</artifactId>
<version>1.0.0</version>
<version>1.0.3</version>
</dependency>
<dependency>
<groupId>com.microsoft.kiota</groupId>
<artifactId>microsoft-kiota-http-okHttp</artifactId>
<version>1.0.0</version>
<version>1.0.3</version>
</dependency>
<dependency>
<groupId>com.microsoft.kiota</groupId>
<artifactId>microsoft-kiota-serialization-json</artifactId>
<version>1.0.0</version>
<version>1.0.3</version>
</dependency>
<dependency>
<groupId>com.microsoft.kiota</groupId>
<artifactId>microsoft-kiota-serialization-text</artifactId>
<version>1.0.0</version>
<version>1.0.3</version>
</dependency>
<dependency>
<groupId>com.microsoft.kiota</groupId>
<artifactId>microsoft-kiota-serialization-form</artifactId>
<version>1.0.0</version>
<version>1.0.3</version>
</dependency>
<dependency>
<groupId>com.microsoft.kiota</groupId>
<artifactId>microsoft-kiota-serialization-multipart</artifactId>
<version>1.0.0</version>
<version>1.0.3</version>
</dependency>
```

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.microsoft.kiota.http.middleware;

import com.microsoft.kiota.Compatibility;
import com.microsoft.kiota.http.middleware.options.ParametersNameDecodingOption;

import io.opentelemetry.api.trace.Span;
Expand Down Expand Up @@ -107,7 +108,7 @@ public ParametersNameDecodingHandler(@Nonnull final ParametersNameDecodingOption
@Nullable final String original, @Nonnull final char[] charactersToDecode) {
Objects.requireNonNull(charactersToDecode);

if (original == null || original.isBlank() || charactersToDecode.length == 0) {
if (original == null || Compatibility.isBlank(original) || charactersToDecode.length == 0) {
return "";
}

Expand Down Expand Up @@ -152,7 +153,7 @@ public ParametersNameDecodingHandler(@Nonnull final ParametersNameDecodingOption
return toDecode.stream()
.map(
tuple ->
tuple.getKey().isBlank()
Compatibility.isBlank(tuple.getKey())
? tuple.getValue()
: tuple.getValue() + "=" + tuple.getKey())
.collect(Collectors.joining("&"));
Expand Down

0 comments on commit 2dd6776

Please sign in to comment.