def patch(path, options={})
      method = Net::HTTP::Patch
      options[:body] ||= options.delete(:query)
      if hash_contains_files?(options[:body])
        method = MultipartPatch