Skip to content

Commit 81d7cf5

Browse files
committed
fixed uncorrect behaviour applying system proxy
1 parent e40ac48 commit 81d7cf5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/webdriver/extension_qt/q_proxy_parser.cc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,11 @@ Error* QProxyCapabilitiesParser::ParseNoProxy(const base::Value* option){
199199
Error* QProxyCapabilitiesParser::ParseSystemProxy(const base::DictionaryValue *options) {
200200

201201
QString urlString(qgetenv("http_proxy"));
202+
if (urlString == NULL) {
203+
logger_.Log(kInfoLogLevel,"system proxy configuration not found");
204+
return NULL;
205+
}
206+
202207
if (!urlString.startsWith("http://"))
203208
urlString.insert(0, "http://");
204209
QUrl proxyUrl(urlString);

0 commit comments

Comments
 (0)