Skip to content

Commit 03296a0

Browse files
committed
paste the right message
1 parent ee2c1c1 commit 03296a0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

R/getWebServiceData.R

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,11 @@ getWebServiceData <- function(obs_url, ...) {
3636
obs_url <- httr2::req_headers(obs_url,
3737
`Accept-Encoding` = c("compress", "gzip"))
3838

39-
message("GET:", obs_url$url)
39+
url_method <- "GET"
40+
if(!is.null(obs_url$body)){
41+
url_method <- "POST"
42+
}
43+
message(url_method, ": ", obs_url$url)
4044
returnedList <- httr2::req_perform(obs_url)
4145

4246
good <- check_non_200s(returnedList)

0 commit comments

Comments
 (0)