Adds support for downloading binary record response
[mkjsf-moved-to-github.git] / src / main / java / com / indexdata / mkjsf / pazpar2 / ClientCommandResponse.java
index e33ce1e..01444ef 100644 (file)
@@ -45,6 +45,8 @@ public class ClientCommandResponse implements HttpResponseWrapper {
   public String getResponseString() {\r
     if (content == null) {\r
       return contentString;\r
+    } else if (isBinary()) {\r
+      return "[binary response]";\r
     } else {\r
       try {\r
         return new String(content,"UTF-8");\r