diff options
-rw-r--r-- | controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/configserver/ProxyResponse.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/configserver/ProxyResponse.java b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/configserver/ProxyResponse.java index 1e9a3b4c4c8..28aaa29408e 100644 --- a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/configserver/ProxyResponse.java +++ b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/configserver/ProxyResponse.java @@ -5,7 +5,6 @@ import com.yahoo.container.jdisc.HttpResponse; import java.io.IOException; import java.io.OutputStream; -import java.nio.charset.StandardCharsets; import java.util.Optional; /** @@ -13,10 +12,10 @@ import java.util.Optional; */ public class ProxyResponse extends HttpResponse { - private final String content; + private final byte[] content; private final String contentType; - public ProxyResponse(String content, String contentType, int status) { + public ProxyResponse(byte[] content, String contentType, int status) { super(status); this.content = content; this.contentType = contentType; @@ -24,7 +23,7 @@ public class ProxyResponse extends HttpResponse { @Override public void render(OutputStream outputStream) throws IOException { - outputStream.write(content.getBytes(StandardCharsets.UTF_8)); + outputStream.write(content); } @Override |