Skip to content

Commit

Permalink
hide date snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinSchobben authored and trel committed Nov 20, 2023
1 parent 943f34c commit 3aa1614
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions inst/httptest2/redact.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ function (response) {
# mask host in headers
response$url <- gsub(rirods:::find_irods_file("host"), "", response$url, fixed = TRUE)

# mask dates in headers
response$headers$Date <- ""

# change body upon PUT when type is raw (`iput()` and `isaverds()`)
type_body <- try(response$body$type, silent = TRUE)
if (!inherits(type_body, "try-error") && !is.null(type_body) && type_body == "raw" && response$method == "PUT") {
Expand Down

0 comments on commit 3aa1614

Please sign in to comment.