Skip to content

Commit

Permalink
fix upload file status code allowed
Browse files Browse the repository at this point in the history
  • Loading branch information
eblondel committed Oct 16, 2021
1 parent 5747e0e commit 89eebfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/ocsApiWebdavManager.R
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ ocsApiWebdavManager <- R6Class("ocsApiWebdavManager",
logger = self$loggerType
)
upload_req$execute()
if(upload_req$getStatus()==201){
if(upload_req$getStatus() %in% c(201, 204)){
self$INFO(sprintf("Successfuly uploaded file '%s' at '%s'",
filename, paste(private$url, request, sep="/")))
}else{
Expand Down

0 comments on commit 89eebfd

Please sign in to comment.