Skip to content

Commit

Permalink
Merge pull request #6 from christopherDT/main
Browse files Browse the repository at this point in the history
make sure is_full_url checks *start* of string for "http"
  • Loading branch information
lswainemoore authored Dec 13, 2023
2 parents b625b17 + 0e935e6 commit 220417d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/api_calls.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
quantaq_request <- function(endpoint, qs_params = NULL){
client <- access_client()

is_full_url <- stringr::str_detect(endpoint, "http")
is_full_url <- stringr::str_detect(endpoint, "^http")

if(is_full_url){ # if it's a full url
req <- httr2::request(endpoint)
Expand Down

0 comments on commit 220417d

Please sign in to comment.