Permalink
Browse files

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

  • Loading branch information...
1 parent 5e374c8 commit de45698075aff9a64a08503680dcb4115fd1f9d5 @woorea committed Mar 29, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 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"));

0 comments on commit de45698

Please sign in to comment.