File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
marklogic-client-api/src/main/java/com/marklogic/client/impl Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -4201,12 +4201,18 @@ private Request.Builder addTelemetryAgentId(Request.Builder requestBldr) {
4201
4201
return requestBldr .header ("ML-Agent-ID" , "java" );
4202
4202
}
4203
4203
4204
+ /**
4205
+ * Per https://docs.marklogic.com/10.0/guide/relnotes/chap3#id_73268 , support for ML-Check-ML11-Headers was added
4206
+ * for MarkLogic 10.0-9. It is no longer needed in MarkLogic 11 or later. The addition of it will not cause any
4207
+ * harm, but it can be removed once the Java client no longer needs to support MarkLogic 10.
4208
+ *
4209
+ * @param requestBldr
4210
+ * @param path
4211
+ * @return
4212
+ */
4204
4213
private Request .Builder addTrailerHeadersIfNecessary (Request .Builder requestBldr , String path ) {
4205
4214
if ("rows" .equals (path )) {
4206
- // Standard header supported by ML 11
4207
4215
requestBldr .addHeader ("TE" , "trailers" );
4208
-
4209
- // Proprietary header recognized by ML 10.0-9, per https://docs.marklogic.com/guide/relnotes/chap3#id_73268
4210
4216
requestBldr .addHeader ("ML-Check-ML11-Headers" , "true" );
4211
4217
}
4212
4218
return requestBldr ;
You can’t perform that action at this time.
0 commit comments