Add quick test for the custom HTTP user agent
This commit is contained in:
parent
cca0417d89
commit
16d7f91ad0
1 changed files with 5 additions and 0 deletions
|
|
@ -101,3 +101,8 @@ if (getRversion() >= "3.5.0" && getRversion() < "4.0.0") {
|
|||
} else if (getRversion() >= "4.0.0") {
|
||||
stopifnot(has_pcre2 && !has_pcre1)
|
||||
}
|
||||
|
||||
# Check that the custom HTTP user agent was configured
|
||||
if (!grepl(sprintf("^R/%s", getRversion()), getOption("HTTPUserAgent"))) {
|
||||
stop("unexpected HTTPUserAgent")
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue