Skip to content

Commit

Permalink
Merge pull request #245 from reportportal/develop
Browse files Browse the repository at this point in the history
Release
  • Loading branch information
HardNorth authored Apr 4, 2024
2 parents b1e02a0 + 7ed5b53 commit 1e0e62f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Changelog

## [Unreleased]
### Changed
- Return back `ContentType#parse` method for backward compatibility, by @HardNorth

## [5.2.12]
### Changed
Expand Down
13 changes: 13 additions & 0 deletions src/main/java/com/epam/reportportal/utils/http/ContentType.java
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,19 @@ public static String stripMediaType(@Nullable String contentType) {
return mimeType.isEmpty() ? null : mimeType;
}

/**
* Extract Media Type from a Content-Type header.
*
* @param contentType Content-Type header value
* @return Media Type
* @deprecated Use {@link #stripMediaType(String)} instead
*/
@Deprecated
@Nullable
public static String parse(@Nullable String contentType) {
return stripMediaType(contentType);
}

/**
* Check if the Media Type is known.
*
Expand Down

0 comments on commit 1e0e62f

Please sign in to comment.