module Github::Connection

def default_options(options={}) # :nodoc:

:nodoc:
def default_options(options={}) # :nodoc:
  {
    :headers => {
      ACCEPT           => "application/vnd.github.v3.raw+json," \
                          "application/vnd.github.beta.raw+json;q=0.5," \
                          "application/json;q=0.1",
      ACCEPT_CHARSET   => "utf-8",
      USER_AGENT       => user_agent,
      CONTENT_TYPE     => 'application/x-www-form-urlencoded'
    },
    :ssl => { :verify => false },
    :url => options.fetch(:endpoint) { Github.endpoint }
  }.merge(options)
end