Flowdock
method

authorization_header

Importance_0
v3.0.9 - Show latest stable - 0 notes - Class: ActiveResource::Connection
authorization_header(http_method, uri) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activeresource/lib/active_resource/connection.rb, line 225
      def authorization_header(http_method, uri)
        if @user || @password
          if auth_type == :digest
            { 'Authorization' => digest_auth_header(http_method, uri) }
          else
            { 'Authorization' => 'Basic ' + ["#{@user}:#{@password}"].pack('m').delete("\r\n") }
          end
        else
          {}
        end
      end
Register or log in to add new notes.