getConnection now works correctly when ARVADOS_API_HOST_INSECURE is set to TRUE
[arvados.git] / sdk / R / R / HttpRequest.R
index 95dd375debe5ce076638c55de49a57db1f2d8f0d..abbe5b7b44a9c0ff10594bb44f7847f2475809e5 100644 (file)
@@ -30,7 +30,7 @@ HttpRequest <- R6::R6Class(
 
             config <- httr::add_headers(unlist(headers))
             if(toString(Sys.getenv("ARVADOS_API_HOST_INSECURE") == "TRUE"))
-               config$options = list(ssl_verifypeer = FALSE)
+               config$options = list(ssl_verifypeer = 0L)
 
             # times = 1 regular call + numberOfRetries
             response <- httr::RETRY(verb, url = url, body = body,