Skip to content

Commit

Permalink
Merge pull request #14 from DMRathod/master
Browse files Browse the repository at this point in the history
server URL should be robust to trailing slashes
  • Loading branch information
robkooper committed Apr 30, 2021
2 parents 81cb068 + 1b9d6d0 commit 4956c6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/connect.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
##' server <- connect(url="http://localhost:8000", username="carya", password="illinois")

connect <- function(url, username=NULL, password=NULL){
res <- list(url=url, username=username, password=password)
res <- list(url=sub('^/|/$','',url), username=username, password=password)
return(res)
}

0 comments on commit 4956c6b

Please sign in to comment.