File: constants.rb

package info (click to toggle)
ruby-openid 2.1.8debian-6
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,676 kB
  • sloc: ruby: 16,506; xml: 219; sh: 24; makefile: 2
file content (21 lines) | stat: -rw-r--r-- 632 bytes parent folder | download | duplicates (8)
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