Skip to content
This repository has been archived by the owner on Oct 31, 2019. It is now read-only.

Commit

Permalink
Merge pull request #56 from brnleehng/fix/httr-date-format
Browse files Browse the repository at this point in the history
Changed date format to use httr date format
  • Loading branch information
andrie committed May 20, 2017
2 parents 9300352 + 4602f31 commit 945f2cf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions R/internal.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ callAzureStorageApi <- function(url, verb = "GET", storageKey, storageAccount,
headers = NULL, container = NULL, CMD, size = nchar(content), contenttype = NULL,
content = NULL,
verbose = FALSE) {
dateStamp <- format(Sys.time(), "%a, %d %b %Y %H:%M:%S %Z", tz = "GMT")
dateStamp <- httr::http_date(Sys.time())

verbosity <- if (verbose) httr::verbose(TRUE) else NULL

Expand Down Expand Up @@ -54,7 +54,7 @@ createAzureStorageSignature <- function(url, verb,
headers = NULL, CMD = NULL, size = NULL, contenttype = NULL, dateStamp, verbose = FALSE) {

if (missing(dateStamp)) {
dateStamp <- format(Sys.time(), "%a, %d %b %Y %H:%M:%S %Z", tz = "GMT")
dateStamp <- httr::http_date(Sys.time())
}

arg1 <- if (length(headers)) {
Expand Down Expand Up @@ -82,7 +82,7 @@ getSig <- function(azureActiveContext, url, verb, key, storageAccount,
dateSig, verbose = FALSE) {

if (missing(dateSig)) {
dateSig <- format(Sys.time(), "%a, %d %b %Y %H:%M:%S %Z", tz = "GMT")
dateSig <- httr::http_date(Sys.time())
}

arg1 <- if (length(headers)) {
Expand Down

0 comments on commit 945f2cf

Please sign in to comment.