Project

General

Profile

Feature #12921 ยป proxy_credential_from_env.patch

wolfer (Sergey Fedosov), 11/10/2016 11:30 AM

View differences:

lib/net/http.rb
1080 1080

  
1081 1081
    # The proxy username, if one is configured
1082 1082
    def proxy_user
1083
      @proxy_user
1083
      if @proxy_from_env then
1084
        proxy_uri&.user
1085
      else
1086
        @proxy_user
1087
      end
1084 1088
    end
1085 1089

  
1086 1090
    # The proxy password, if one is configured
1087 1091
    def proxy_pass
1088
      @proxy_pass
1092
      if @proxy_from_env then
1093
        proxy_uri&.password
1094
      else
1095
        @proxy_pass
1096
      end
1089 1097
    end
1090 1098

  
1091 1099
    alias proxyaddr proxy_address   #:nodoc: obsolete