Browse Source

pass client headers to HttpUtil.get

tags/2.0.1
Jonathan Cobb 4 years ago
parent
commit
7d6a220fb6
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      wizard-common/src/main/java/org/cobbzilla/wizard/client/ApiClientBase.java

+ 1
- 1
wizard-common/src/main/java/org/cobbzilla/wizard/client/ApiClientBase.java View File

@@ -505,7 +505,7 @@ public class ApiClientBase implements Cloneable, Closeable {
}

public InputStream getStream(HttpRequestBean request) throws IOException {
return HttpUtil.get(getBaseUri()+request.getUri(), new SingletonMap<>(getTokenHeader(), getToken()));
return HttpUtil.get(getBaseUri()+request.getUri(), new SingletonMap<>(getTokenHeader(), getToken()), headers);
}

public String getStreamedString(HttpRequestBean request) throws IOException {


Loading…
Cancel
Save