method

setup_upstream_proxy_authentication

Importance_0
v1_9_3_125 - Show latest stable - 0 notes - Class: WEBrick::HTTPProxyServer
setup_upstream_proxy_authentication(req, res, header) private

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/webrick/httpproxy.rb, line 262
    def setup_upstream_proxy_authentication(req, res, header)
      if upstream = proxy_uri(req, res)
        if upstream.userinfo
          header['proxy-authorization'] =
            "Basic " + [upstream.userinfo].pack("m").delete("\n")
        end
        return upstream
      end
      return FakeProxyURI
    end
Register or log in to add new notes.