From d8104beab73fa623531eca45b677a889f3debab7 Mon Sep 17 00:00:00 2001 From: Vadzim Hushchanskou Date: Thu, 28 Nov 2024 15:38:25 +0300 Subject: [PATCH 1/2] Add more known types --- src/main/java/com/epam/reportportal/utils/http/ContentType.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/epam/reportportal/utils/http/ContentType.java b/src/main/java/com/epam/reportportal/utils/http/ContentType.java index ecc4cd6f..100b7222 100644 --- a/src/main/java/com/epam/reportportal/utils/http/ContentType.java +++ b/src/main/java/com/epam/reportportal/utils/http/ContentType.java @@ -74,6 +74,8 @@ public class ContentType { public static final String TEXT_PLAIN = "text/plain"; public static final String TEXT_HTML = "text/html"; public static final String TEXT_XML = "text/xml"; + public static final String TEXT_JSON = "text/json"; + public static final String RP_JSON = "x-reportportal-entity-v2+json"; // Form types public static final String APPLICATION_FORM_URLENCODED = "application/x-www-form-urlencoded"; From 08bc85869053783fa6bee475630a8dc93481a59c Mon Sep 17 00:00:00 2001 From: Vadzim Hushchanskou Date: Thu, 28 Nov 2024 15:41:10 +0300 Subject: [PATCH 2/2] CHANGELOG.md update --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0e6fae06..9c01f06c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,8 @@ # Changelog ## [Unreleased] +### Added +- Some new types to `ContentType` class, by @HardNorth ## [5.2.22] ### Changed