diff --git a/CHANGELOG.md b/CHANGELOG.md index fc5765e..0c784b4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ ## [Unreleased] ### Changed -- Client version updated on [5.2.11](https://github.com/reportportal/client-java/releases/tag/5.2.11), by @HardNorth +- Client version updated on [5.2.13](https://github.com/reportportal/client-java/releases/tag/5.2.13), by @HardNorth ## [5.2.2] ### Changed diff --git a/gradle.properties b/gradle.properties index fc169ff..f8bbea0 100644 --- a/gradle.properties +++ b/gradle.properties @@ -3,7 +3,7 @@ description=Report Portal Java formatting utils for Agents and Loggers junit5_version=5.6.3 junit5_runner_version=1.6.3 mockito_version=4.5.1 -client_version=5.2.11 +client_version=5.2.13 jsr305_version=3.0.2 scripts_url=https://raw.githubusercontent.com/reportportal/gradle-scripts scripts_branch=master diff --git a/src/main/java/com/epam/reportportal/formatting/http/HttpFormatUtils.java b/src/main/java/com/epam/reportportal/formatting/http/HttpFormatUtils.java index f07b1c5..062ee55 100644 --- a/src/main/java/com/epam/reportportal/formatting/http/HttpFormatUtils.java +++ b/src/main/java/com/epam/reportportal/formatting/http/HttpFormatUtils.java @@ -52,7 +52,7 @@ private HttpFormatUtils() { @Nonnull public static String getMimeType(@Nullable String contentType) { return ofNullable(contentType).filter(ct -> !ct.isEmpty()) - .map(ct -> ContentType.parse(contentType)) + .map(ct -> ContentType.stripMediaType(contentType)) .orElse(ContentType.APPLICATION_OCTET_STREAM); } @@ -278,7 +278,7 @@ public static BodyType getBodyType(@Nullable String contentType, @Nullable Map m.getOrDefault(mimeType, BodyType.BINARY)).orElse(BodyType.BINARY); }