Lines 44-50
Link Here
|
44 |
#include <sysexits.h> |
44 |
#include <sysexits.h> |
45 |
#include <unistd.h> |
45 |
#include <unistd.h> |
46 |
|
46 |
|
47 |
static const char * env_HTTP_PROXY; |
47 |
static char * env_HTTP_PROXY; |
48 |
static char * env_HTTP_PROXY_AUTH; |
48 |
static char * env_HTTP_PROXY_AUTH; |
49 |
static const char * env_HTTP_USER_AGENT; |
49 |
static const char * env_HTTP_USER_AGENT; |
50 |
static char * env_HTTP_TIMEOUT; |
50 |
static char * env_HTTP_TIMEOUT; |
Lines 136-141
Link Here
|
136 |
p = strchr(env_HTTP_PROXY, '/'); |
136 |
p = strchr(env_HTTP_PROXY, '/'); |
137 |
if (p != NULL) |
137 |
if (p != NULL) |
138 |
*p = 0; |
138 |
*p = 0; |
|
|
139 |
if (strchr(env_HTTP_PROXY, '@')) { |
140 |
proxy_auth_user = strsep(&env_HTTP_PROXY, ":"); |
141 |
proxy_auth_pass = strsep(&env_HTTP_PROXY, "@"); |
142 |
p = strchr(env_HTTP_PROXY, '@'); |
143 |
} |
139 |
p = strchr(env_HTTP_PROXY, ':'); |
144 |
p = strchr(env_HTTP_PROXY, ':'); |
140 |
if (p != NULL) { |
145 |
if (p != NULL) { |
141 |
*p = 0; |
146 |
*p = 0; |