Skip to content

Commit

Permalink
#190 try with Accept = application/xml
Browse files Browse the repository at this point in the history
  • Loading branch information
eblondel committed Jun 20, 2022
1 parent 10e8a1e commit b3d8711
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/readISO19139.R
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ readISO19139 <- function(file = NULL, url = NULL, raw = FALSE){
encoding <- "UTF-8"
raw_xml <- NULL
if(!is.null(url)){
req <- httr::GET(url, httr::add_headers("Accept" = "text/xml"))
req <- httr::GET(url, httr::add_headers("Accept" = "application/xml"))
if(httr::status_code(req) != 200){
stop("The URL resource is unavailable")
}
Expand Down

0 comments on commit b3d8711

Please sign in to comment.