module Skylight::Core::Util::Proxy
Public Class Methods
detect_url(env)
click to toggle source
# File lib/skylight/core/util/proxy.rb, line 4 def self.detect_url(env) u = env["HTTP_PROXY"] || env["http_proxy"] if u && !u.empty? u = "http://#{u}" unless u =~ %r{://} u end end