Skip to content

Commit

Permalink
fix #60
Browse files Browse the repository at this point in the history
  • Loading branch information
eblondel committed Oct 12, 2021
1 parent bd31131 commit 96cf8a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/ZenodoManager.R
Original file line number Diff line number Diff line change
Expand Up @@ -899,7 +899,7 @@ ZenodoManager <- R6Class("ZenodoManager",
if(!is.null(record)) recordId <- record$id
fileparts <- strsplit(path,"/")
filename <- unlist(fileparts)[length(fileparts)]
method <- ifelse(newapi, "PUT", "POST")
method <- if(newapi) "PUT" else "POST"
if(!"bucket" %in% names(record$links)){
self$WARN(sprintf("No bucket link for record id = %s. Revert to old file upload API", recordId))
newapi <- FALSE
Expand Down

0 comments on commit 96cf8a3

Please sign in to comment.