Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,11 @@ public Response enhanceFromForm(@FormParam("content") String content,
// content parameter
throw new WebApplicationException(
Response.status(Response.Status.UNSUPPORTED_MEDIA_TYPE)
.entity("Parsing Content as 'application/x-www-form-urlencoded' is not supported!"
+ "Please directly POST the content and set the 'Content-Type' "
+ "header to the media type of the parsed content. 'application/"
+ "octet-stream' SHOULD BE used if the media type of the parsed "
+ "content is not known.\n")
.entity("Parsing Content as 'application/x-www-form-urlencoded' is not officially supported!"
+ "Please directly POST the content or if you do want to use the unsupported API,"
+ "use the following keys:\n"
+ "content => The text to enhance\n"
+ "format => Equivalent to the Accept Header\n")
.build());
}
ContentItem ci = ciFactory.createContentItem(new StringSource(content));
Expand Down