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