    # File lib/fog/zerigo/dns.rb, line 90
            def request(params)
              params[:headers] ||= {}
              key= "#{@zerigo_email}:#{@zerigo_token}"
              params[:headers].merge!({
                'Authorization' => "Basic #{Base64.encode64(key).delete("\r\n")}"
              })
              case params[:method]
              when 'DELETE', 'GET', 'HEAD'
                params[:headers]['Accept'] = 'application/xml'
              when 'POST', 'PUT'
                params[:headers]['Content-Type'] = 'application/xml'
              end

              begin
                response = @connection.request(params.merge!({:host => @host}))
              rescue Excon::Errors::HTTPStatusError => error
                raise case error
                when Excon::Errors::NotFound
                  Fog::DNS::Zerigo::NotFound.slurp(error)
                else
                  error
                end
              end

              response
            end