fix bug in simple http client when no accept header is set
This commit is contained in:
parent
68a3b6c808
commit
16e21c5bbe
|
@ -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())) {
|
||||
|
|
|
@ -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://")) {
|
||||
|
|
Loading…
Reference in New Issue