fix bug in simple http client when no accept header is set

This commit is contained in:
Grahame Grieve 2022-11-02 20:57:05 +11:00
parent 68a3b6c808
commit 16e21c5bbe
2 changed files with 4 additions and 2 deletions

View File

@ -769,7 +769,7 @@ public class ValueSetRenderer extends TerminologyRenderer {
td = tr.td();
if (cs != null) {
String defn = CodeSystemUtilities.getCodeDefinition(cs, c.getCode());
addMarkdown(td, defn);
addMarkdown(td, defn, cs.getUserString("path"));
}
}
for (String n : Utilities.sorted(properties.keySet())) {

View File

@ -139,7 +139,9 @@ public class SimpleHTTPClient {
u = new URL(url);
c = (HttpURLConnection) u.openConnection();
c.setRequestMethod("GET");
c.setRequestProperty("Accept", accept);
if (accept != null) {
c.setRequestProperty("Accept", accept);
}
setHeaders(c);
c.setInstanceFollowRedirects(false);
if (trustAll && url.startsWith("https://")) {