diff --git a/NEWS.md b/NEWS.md index 442b9882..d47f320b 100644 --- a/NEWS.md +++ b/NEWS.md @@ -6,6 +6,10 @@ * `urlEncode()` now uses `curl::curl_escape()` instead of `RCurl::curlEscape()`, as RCurl is a Suggests dependency. (#1265) + +* The `User-Agent` header in requests made from rsconnect will now be of the + format `RSConnect/x.y.z` instead of `rsconnect/x.y.z` in order to satisfy web + application firewalls that enforce Pascal case. # rsconnect 1.6.2 diff --git a/R/http.R b/R/http.R index e6c9f282..024681bc 100644 --- a/R/http.R +++ b/R/http.R @@ -641,7 +641,7 @@ rfc2616Date <- function(time = Sys.time()) { # Helpers ----------------------------------------------------------------- userAgent <- function() { - paste("rsconnect", packageVersion("rsconnect"), sep = "/") + paste("RSConnect", packageVersion("rsconnect"), sep = "/") } parseHttpHeader <- function(header) {