distribution/registry
Aaron Lehmann 6664a1384e Fix empty delete requests with Swift fs driver
The Delete method lists objects under the given path and tries to delete
all of them with a bulk delete request. If the path has no objects
underneath it, the body of this request will be empty, which causes
HTTP-level issues. Specifically, Go's HTTP client senses the empty
request buffer and doesn't include a Content-Length, which causes the
Swift server to fail the request.

This commit fixes the problem by avoiding sending empty bulk delete
requests. This is the correct thing to do anyway, since there's no
reason to request deletion of zero objects.

Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
2015-11-09 15:33:05 -08:00
..
api Merge pull request #1035 from aaronlehmann/host-parameter-alternate 2015-10-13 14:03:48 -07:00
auth Update "type auth.Challenge" comment example code 2015-10-21 11:54:13 -07:00
client Add `expires_in` and `issued_at` to the auth spec. 2015-10-27 11:05:33 -07:00
handlers Before allowing a schema1 manifest to be stored in the registry, ensure that it 2015-11-03 15:19:46 -08:00
listener [Server] Listen and serve on a unix socket 2015-05-11 16:00:14 +03:00
middleware Add pull through cache functionality to the Registry which can be configured 2015-08-04 16:09:55 -07:00
proxy Buffer writing the scheduler entry state to disk by periodically checking for 2015-10-29 11:35:52 -07:00
storage Fix empty delete requests with Swift fs driver 2015-11-09 15:33:05 -08:00
doc.go Move initialization code from main.go to the registry package 2015-09-09 14:39:31 -07:00
registry.go Add WithVersion to context and other cleanup 2015-09-14 17:14:31 -07:00