diff --git a/CHANGELOG.md b/CHANGELOG.md index 280115c..0c784b4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,10 +1,12 @@ # Changelog ## [Unreleased] +### Changed +- Client version updated on [5.2.13](https://github.com/reportportal/client-java/releases/tag/5.2.13), by @HardNorth ## [5.2.2] ### Changed -- Client version updated on [5.2.7](https://github.com/reportportal/client-java/releases/tag/5.2.7), by @HardNorth +- Client version updated on [5.2.8](https://github.com/reportportal/client-java/releases/tag/5.2.8), by @HardNorth - Client and JSR 305 dependencies marked as `compileOnly`, by @HardNorth ## [5.2.1] diff --git a/gradle.properties b/gradle.properties index 5f47290..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.8 +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); }