From 104d7dd29d5940d4b0f1e657d94abfa7fee2bef6 Mon Sep 17 00:00:00 2001 From: rrizun Date: Mon, 25 Feb 2008 04:02:08 +0000 Subject: [PATCH] x-amz-* vs x-amz-meta-* git-svn-id: http://s3fs.googlecode.com/svn/trunk@105 df820570-a93a-0410-bd06-b72b767a4274 --- s3fs/s3fs.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/s3fs/s3fs.cpp b/s3fs/s3fs.cpp index 1a16176..d86e0c2 100644 --- a/s3fs/s3fs.cpp +++ b/s3fs/s3fs.cpp @@ -633,7 +633,9 @@ put_local_fd(const char* path, headers_t meta, int fd) { string value = (*iter).second; if (key == "Content-Type") headers.append(key+":"+value); - if (key.substr(0,5) == "x-amz") + if (key.substr(0,9) == "x-amz-acl") + headers.append(key+":"+value); + if (key.substr(0,10) == "x-amz-meta") headers.append(key+":"+value); }