Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions R/client.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ clientForAccount <- function(account) {
serverUrl <- parseHttpUrl(serverInfo$url)

if (isShinyappsServer(account$server)) {
# Disable httr2 for shinyapps.io. The shinyapps.io API returns 303
# redirects on several POST endpoints (updateBundleStatus,
# deployApplication), and httr2 drops the request body on redirect
# while keeping the X-Content-Checksum header, causing "bad checksum"
# and "Method Not Allowed" errors.
# See https://github.com/rstudio/rsconnect/issues/1297
options(rsconnect.httr2 = FALSE)
shinyAppsClient(serverUrl, account)
} else if (isPositConnectCloudServer(account$server)) {
connectCloudClient(serverUrl, account)
Expand Down
Loading