'm trying to add an image with the following command. It adds to the registry successfully, but a subsequent GET will not stream the image data to me.
curl -X POST -i \
-H "X-Image-Meta-Name: image" \
-H "X-Image-Meta-Container_format: ami" \
-H "X-Image-Meta-Disk_format: ami" \
-H "X-Image-Meta-Size: 25165824" \
-H "X-Image-Meta-Store: http" \
-H "X-Image-Meta-Checksum: 10047a119149e08fb206eea89832eee0" \
-H "X-Image-Meta-Location: <example_http_image>" \
http://localhost:9292/v1/images
I get the following headers, then the connection just sits open without printing any body:
HTTP/1.1 200 OK
Content-Length: 25165824
Content-Type: application/octet-stream
X-Image-Meta-Id: 15
X-Image-Meta-Deleted: False
X-Image-Meta-Container_format: ami
X-Image-Meta-Location: <example_http_image>
X-Image-Meta-Deleted_at:
X-Image-Meta-Created_at: 2011-06-29T21:16:45.989329
X-Image-Meta-Size: 25165824
X-Image-Meta-Status: active
X-Image-Meta-Is_public: False
X-Image-Meta-Updated_at: 2011-06-29T21:16:46.011739
X-Image-Meta-Checksum: 10047a119149e08fb206eea89832eee0
X-Image-Meta-Disk_format: ami
X-Image-Meta-Name: image
Location: http://localhost:9292/v1/images/15
Etag: 10047a119149e08fb206eea89832eee0
Date: Wed, 29 Jun 2011 21:17:02 GMT
Looks like the Location: returned is incorrect. Should be the originally-supplied HTTP location, right?