Explorar el Código

pass client headers to HttpUtil.get

tags/2.0.1
Jonathan Cobb hace 4 años
padre
commit
7d6a220fb6
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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 Ver fichero

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


public InputStream getStream(HttpRequestBean request) throws IOException { 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 { public String getStreamedString(HttpRequestBean request) throws IOException {


Cargando…
Cancelar
Guardar