From 2846913552ff3c395818299d11d02e0a19dc348c Mon Sep 17 00:00:00 2001 From: Sylvain Baubeau Date: Tue, 30 Jun 2015 14:21:03 +0200 Subject: [PATCH] Change folder mime type to application/vnc.swift.directory Signed-off-by: Sylvain Baubeau --- cmd/registry-storagedriver-swift/main.go | 4 ---- registry/storage/driver/swift/swift.go | 3 ++- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/cmd/registry-storagedriver-swift/main.go b/cmd/registry-storagedriver-swift/main.go index 410305e00..24ad445b8 100644 --- a/cmd/registry-storagedriver-swift/main.go +++ b/cmd/registry-storagedriver-swift/main.go @@ -25,8 +25,4 @@ func main() { if err != nil { panic(err) } - - if err := ipc.StorageDriverServer(driver); err != nil { - logrus.Fatalln(err) - } } diff --git a/registry/storage/driver/swift/swift.go b/registry/storage/driver/swift/swift.go index 7de6f8de4..380d65da2 100644 --- a/registry/storage/driver/swift/swift.go +++ b/registry/storage/driver/swift/swift.go @@ -49,7 +49,8 @@ const defaultChunkSize = 20 * 1024 * 1024 // minChunkSize defines the minimum size of a segment const minChunkSize = 1 << 20 -const directoryMimeType = "application/directory" +// Vendor MIME type used for objects that act as directories +const directoryMimeType = "application/vnd.swift.directory" //DriverParameters A struct that encapsulates all of the driver parameters after all values have been set type DriverParameters struct {