# File lib/openstack/swift/storage_object.rb, line 71
    def object_metadata
      path = "/#{@containername}/#{@name}"
      response = @container.swift.connection.req("HEAD", URI.encode(path))
      resphash = response.to_hash
      meta = { :bytes=>resphash["content-length"][0],
               :content_type=>resphash["content-type"][0],
               :last_modified=>resphash["last-modified"][0],
               :etag=>resphash["etag"][0],
               :cache_control=> (resphash.has_key?("cache-control") ? resphash["cache-control"][0] : nil),
               :manifest=> (resphash.has_key?("x-object-manifest") ? resphash["x-object-manifest"][0] : nil),
               :metadata=>{}}
      resphash.inject({}){|res, (k,v)| meta[:metadata].merge!({ k.gsub("x-object-meta-", "") => v.first }) if k.match(/^x-object-meta-/)}
      meta
    end