Fossil SCM
Accept return codes 2xx when establishing tunnel.
Commit
a6720183746acbe50a3eefad96b08204a76a42d4
Parent
491e6d30fc29481…
1 file changed
+1
-1
+1
-1
| --- src/http_ssl.c | ||
| +++ src/http_ssl.c | ||
| @@ -263,11 +263,11 @@ | ||
| 263 | 263 | g.urlName, g.urlPort, ERR_reason_error_string(ERR_get_error())); |
| 264 | 264 | ssl_close(); |
| 265 | 265 | return 1; |
| 266 | 266 | } |
| 267 | 267 | rc = establish_proxy_tunnel(sBio); |
| 268 | - if( rc!= 200 ){ | |
| 268 | + if( rc<200||rc>299 ){ | |
| 269 | 269 | return 1; |
| 270 | 270 | } |
| 271 | 271 | |
| 272 | 272 | g.urlPath = g.proxyUrlPath; |
| 273 | 273 | |
| 274 | 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 ){ |
| 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 |