Skip to content

Commit

Permalink
fix; minor import in opeapi-utils
Browse files Browse the repository at this point in the history
  • Loading branch information
periklis91 committed Nov 26, 2024
1 parent 2da4c6a commit 203bee0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ URL: https://github.com/ntua-unit-of-control-and-informatics
BugReports: https://github.com/ntua-unit-of-control-and-informatics
Encoding: UTF-8
LazyData: true
Imports: httr, jsonlite, getPass, stats, base64enc, dotenv, R6
Imports: httr, jsonlite, getPass, stats, base64enc, dotenv, R6, stringr
RoxygenNote: 7.3.2
Suggests: knitr, rmarkdown
VignetteBuilder: knitr
Expand Down
2 changes: 1 addition & 1 deletion R/openapi-utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ ApiClient <- R6::R6Class(
return(invisible(NULL))
} else {
for (header in headers) {
if (str_detect(header, "(?i)^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$")) {
if (stringr::str_detect(header, "(?i)^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$")) {
# return JSON-related MIME
return(header)
}
Expand Down

0 comments on commit 203bee0

Please sign in to comment.