format time as rfc 2616
This commit is contained in:
parent
13bda9e6ae
commit
c5465b93f1
@ -20,7 +20,7 @@ signSignature
|
||||
:: UserDetails -> String -> String -> ByteString -> IO HttpSignature
|
||||
signSignature details host requestTarget body = do
|
||||
date <- Time.getCurrentTime
|
||||
<&> Time.formatTime Time.defaultTimeLocale Time.rfc822DateFormat
|
||||
<&> Time.formatTime Time.defaultTimeLocale "%a, %d %b %Y %H:%M:%S GMT"
|
||||
|
||||
let
|
||||
digest = "SHA-256=" <> encodeBase64 (makeDigest body)
|
||||
|
Loading…
Reference in New Issue
Block a user