         callback(error, null)
 
   request: (path, callback) ->
-    request ?= require 'request'
     options = {
       url: "#{@baseURL}#{path}"
-      headers: DefaultRequestHeaders
+      headers: {'User-Agent': navigator.userAgent}
     }
 
     request options, (err, res, body) =>

        children.forEach(deleteAvatar)

  getCachePath: ->
    {remote} = require 'electron'
    @cachePath ?= path.join(remote.app.getPath('userData'), 'Cache', 'settings-view')

      callback(null, null)
    else
      imagePath = @avatarPath login
      requestObject = {
        url: "https://avatars.githubusercontent.com/#{login}"
        headers: {'User-Agent': navigator.userAgent}
      }
      request.head requestObject, (error, response, body) ->
        if error? or response.statusCode isnt 200 or not response.headers['content-type'].startsWith('image/')
