jaxrs: fix PluginResource encoding
This was breaking plugins returning binary data (e.g. zip files).
@@ -221,7 +221,7 @@ public class PluginResource extends JaxRsResourceBase {
}
return Response.status(response.getStatus())
- .entity(new String(byteArrayOutputStream.toByteArray(), "UTF-8"))
+ .entity(byteArrayOutputStream.toByteArray())
.build();
}
