Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[openstack-java-sdk] DownloadImage looks not worked (#27)

  • Loading branch information...
commit de45698075aff9a64a08503680dcb4115fd1f9d5 1 parent 5e374c8
@woorea authored
View
2  glance-client/src/main/java/org/openstack/glance/api/DownloadImage.java
@@ -22,7 +22,7 @@ public DownloadImage(String id) {
@Override
public ImageDownload execute(WebTarget target) {
- Response response = target.path("images").path(id).request(MediaType.APPLICATION_OCTET_STREAM).head();
+ Response response = target.path("images").path(id).request(MediaType.APPLICATION_OCTET_STREAM).get();
Image image = new Image();
image.setUri(response.getHeaderString("x-image-meta-uri"));
image.setName(response.getHeaderString("x-image-meta-name"));
Please sign in to comment.
Something went wrong with that request. Please try again.