Sha256: bc153e0bb1b75f9f269a2d9ae6ca0ee08d095449e154f8ab54bf0e1aa858261f

Contents?: true

Size: 231 Bytes

Versions: 5

Compression:

Stored size: 231 Bytes

Contents

module Skylight
  module Util
    module Proxy
      def self.detect_url(env)
        if u = env['HTTP_PROXY'] || env['http_proxy']
          u = "http://#{u}" unless u =~ %r[://]
          u
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
skylight-1.0.1 lib/skylight/util/proxy.rb
skylight-1.0.0 lib/skylight/util/proxy.rb
skylight-0.10.6 lib/skylight/util/proxy.rb
skylight-1.0.0.beta5 lib/skylight/util/proxy.rb
skylight-0.10.5 lib/skylight/util/proxy.rb