Skip to content

Commit 4e00432

Browse files
committed
fix #256 by backing out temporary fix for #29 - now that REST API has clarified format param to mean non-content-format, we should explicitly request the non-content format that aligns with our non-content handle, such as SearchHandle
1 parent 62e343b commit 4e00432

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/main/java/com/marklogic/client/impl/JerseyServices.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2057,11 +2057,6 @@ void init() {
20572057
else if (payloadFormat != Format.XML && payloadFormat != Format.JSON)
20582058
throw new IllegalArgumentException(
20592059
"Cannot perform raw search for "+payloadFormat.name());
2060-
// Fix bug https://github.com/marklogic/java-client-api/issues/29
2061-
// by not specifying format parameter when payloadFormat differs
2062-
// may remove when https://bugtrack.marklogic.com/27638 is resolved
2063-
else if (payloadFormat == Format.JSON && "xml".equals(params.getFirst("format")))
2064-
params.remove("format");
20652060

20662061
String payloadMimetype = baseHandle.getMimetype();
20672062
if (payloadFormat != null) {

0 commit comments

Comments
 (0)