# File lib/httpauth/basic.rb, line 85
      def unpack_challenge(authenticate)
        if authenticate =~ /Basic\srealm=\"([^\"]*)\"/
          return $1
        else
          if authenticate =~ /^Basic/
            raise UnwellformedHeader.new("Can't parse the WWW-Authenticate header, it's probably not well formed")
          else
            raise ArgumentError.new("HTTPAuth::Basic can only unpack Basic Authentication headers")
          end
        end
      end