    # File lib/fog/aws/requests/storage/put_bucket_cors.rb, line 22
            def put_bucket_cors(bucket_name, cors)
              data = Fog::Storage::AWS.hash_to_cors(cors)

              headers = {}
              headers['Content-MD5'] = Base64.encode64(Digest::MD5.digest(data)).strip
              headers['Content-Type'] = 'application/json'
              headers['Date'] = Fog::Time.now.to_date_header

              request({
                :body     => data,
                :expects  => 200,
                :headers  => headers,
                :host     => "#{bucket_name}.#{@host}",
                :method   => 'PUT',
                :query    => {'cors' => nil}
              })
            end