aws 0.6.1 → 0.6.2
raw patch · 4 files changed
+16/−2 lines, 4 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
+ Aws.Core: parseHttpDate :: String -> Maybe UTCTime
Files
- Aws/Core.hs +8/−0
- Aws/S3/Core.hs +1/−1
- README.org +6/−0
- aws.cabal +1/−1
Aws/Core.hs view
@@ -48,6 +48,7 @@ , rfc822Time , fmtAmzTime , fmtTimeEpochSeconds+, parseHttpDate -- * Transactions , Transaction -- * Credentials@@ -487,6 +488,13 @@ -- | Format time as seconds since the Unix epoch. fmtTimeEpochSeconds :: UTCTime -> B.ByteString fmtTimeEpochSeconds = fmtTime "%s"++-- | Parse HTTP-date (section 3.3.1 of RFC 2616)+parseHttpDate :: String -> Maybe UTCTime+parseHttpDate s = p "%a, %d %b %Y %H:%M:%S GMT" s -- rfc1123-date+ <|> p "%A, %d-%b-%y %H:%M:%S GMT" s -- rfc850-date+ <|> p "%a %b %_d %H:%M:%S %Y" s -- asctime-date+ where p = parseTime defaultTimeLocale -- | Parse a two-digit hex number. readHex2 :: [Char] -> Maybe Word8
Aws/S3/Core.hs view
@@ -372,7 +372,7 @@ Just x -> return x Nothing -> F.failure $ HeaderException "ETag missing" lastModified = case B8.unpack `fmap` lookup "Last-Modified" h of- Just ts -> case parseTime defaultTimeLocale rfc822Time ts of+ Just ts -> case parseHttpDate ts of Just t -> return t Nothing -> F.failure $ HeaderException "Invalid Last-Modified" Nothing -> F.failure $ HeaderException "Last-Modified missing"
README.org view
@@ -101,6 +101,12 @@ ** 0.6 series +- 0.6.2+ - Properly parse Last-Modified header in accordance with RFC 2616.++- 0.6.1+ - Fix for MD5 encoding issue in S3 PutObject requests.+ - 0.6.0 - API Cleanup - General: Use Crypto.Hash.MD5.MD5 when a Content-MD5 hash is required, instead of ByteString.
aws.cabal view
@@ -6,7 +6,7 @@ -- The package version. See the Haskell package versioning policy -- (http://www.haskell.org/haskellwiki/Package_versioning_policy) for -- standards guiding when and how versions should be incremented.-Version: 0.6.1+Version: 0.6.2 -- A short (one-line) description of the package. Synopsis: Amazon Web Services (AWS) for Haskell