Skip to content

Commit

Permalink
s3 extract user-defined metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiankrol committed May 29, 2012
1 parent 5270124 commit f902111
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/erlcloud_s3.erl
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ get_object_metadata(BucketName, Key, Options, Config) ->
{version_id, proplists:get_value("x-amz-version-id", Headers, "false")}|extract_metadata(Headers)].

extract_metadata(Headers) ->
[{Key, Value} || {["x-amz-meta-"|Key], Value} <- Headers].
[{Key, Value} || {Key = "x-amz-meta-" ++ _, Value} <- Headers].

-spec get_object_torrent(string(), string()) -> proplist().

Expand Down

0 comments on commit f902111

Please sign in to comment.