summaryrefslogtreecommitdiffstats
path: root/vendor/gems/ruby-openid-2.1.4/lib/openid/yadis/constants.rb
blob: 99b58b138e64ebf0d4b2278beb1668542d94a843 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
require 'openid/yadis/accept'

module OpenID

  module Yadis

    YADIS_HEADER_NAME = 'X-XRDS-Location'
    YADIS_CONTENT_TYPE = 'application/xrds+xml'

    # A value suitable for using as an accept header when performing
    # YADIS discovery, unless the application has special requirements
    YADIS_ACCEPT_HEADER = generate_accept_header(
                                                 ['text/html', 0.3],
                                                 ['application/xhtml+xml', 0.5],
                                                 [YADIS_CONTENT_TYPE, 1.0]
                                                 )

  end

end