Fossil SCM

Accept return codes 2xx when establishing tunnel.

jan 2013-10-26 22:51 jan-httpsproxytunnel
Commit a6720183746acbe50a3eefad96b08204a76a42d4
1 file changed +1 -1
+1 -1
--- src/http_ssl.c
+++ src/http_ssl.c
@@ -263,11 +263,11 @@
263263
g.urlName, g.urlPort, ERR_reason_error_string(ERR_get_error()));
264264
ssl_close();
265265
return 1;
266266
}
267267
rc = establish_proxy_tunnel(sBio);
268
- if( rc!= 200 ){
268
+ if( rc<200||rc>299 ){
269269
return 1;
270270
}
271271
272272
g.urlPath = g.proxyUrlPath;
273273
274274
--- src/http_ssl.c
+++ src/http_ssl.c
@@ -263,11 +263,11 @@
263 g.urlName, g.urlPort, ERR_reason_error_string(ERR_get_error()));
264 ssl_close();
265 return 1;
266 }
267 rc = establish_proxy_tunnel(sBio);
268 if( rc!= 200 ){
269 return 1;
270 }
271
272 g.urlPath = g.proxyUrlPath;
273
274
--- src/http_ssl.c
+++ src/http_ssl.c
@@ -263,11 +263,11 @@
263 g.urlName, g.urlPort, ERR_reason_error_string(ERR_get_error()));
264 ssl_close();
265 return 1;
266 }
267 rc = establish_proxy_tunnel(sBio);
268 if( rc<200||rc>299 ){
269 return 1;
270 }
271
272 g.urlPath = g.proxyUrlPath;
273
274

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button