From 9a42e81a2ec3ab6e0413b87525341d4cf1ab44ea Mon Sep 17 00:00:00 2001 From: Grahame Grieve Date: Wed, 20 Nov 2024 13:47:25 +1100 Subject: [PATCH] fix ontoserver tx tests --- .../org/hl7/fhir/validation/special/TxTester.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/validation/special/TxTester.java b/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/validation/special/TxTester.java index 47f299ed9..14f96efdd 100644 --- a/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/validation/special/TxTester.java +++ b/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/validation/special/TxTester.java @@ -269,7 +269,7 @@ public class TxTester { } JsonObject ext = externals == null ? null : externals.getJsonObject(fn); - String lang = test.asString("Content-Language"); + String lang = test.asString("Accept-Language"); String msg = null; if (test.asString("operation").equals("metadata")) { msg = metadata(test.str("name"), setup, resp, fp, lang, profile, ext); @@ -381,7 +381,7 @@ public class TxTester { for (Resource r : setup) { p.addParameter().setName("tx-resource").setResource(r); } - terminologyClient.setContentLanguage(lang); + terminologyClient.setAcceptLanguage(lang); p.getParameter().addAll(profile.getParameter()); int code = 0; String pj; @@ -412,7 +412,7 @@ public class TxTester { for (Resource r : setup) { p.addParameter().setName("tx-resource").setResource(r); } - terminologyClient.setContentLanguage(lang); + terminologyClient.setAcceptLanguage(lang); p.getParameter().addAll(profile.getParameter()); int code = 0; String pj; @@ -443,7 +443,7 @@ public class TxTester { for (Resource r : setup) { p.addParameter().setName("tx-resource").setResource(r); } - terminologyClient.setContentLanguage(lang); + terminologyClient.setAcceptLanguage(lang); p.getParameter().addAll(profile.getParameter()); int code = 0; String vsj; @@ -486,7 +486,7 @@ public class TxTester { p.addParameter().setName("tx-resource").setResource(r); } p.getParameter().addAll(profile.getParameter()); - terminologyClient.setContentLanguage(lang); + terminologyClient.setAcceptLanguage(lang); int code = 0; String pj; try { @@ -518,7 +518,7 @@ public class TxTester { p.addParameter().setName("tx-resource").setResource(r); } p.getParameter().addAll(profile.getParameter()); - terminologyClient.setContentLanguage(lang); + terminologyClient.setAcceptLanguage(lang); int code = 0; String pj; try {