packages feed

http-conduit-downloader 1.0.5 → 1.0.6

raw patch · 2 files changed

+9/−6 lines, 2 filesdep ~http-conduitPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: http-conduit

API changes (from Hackage documentation)

Files

Network/HTTP/Conduit/Downloader.hs view
@@ -1,12 +1,12 @@ {-# LANGUAGE OverloadedStrings, BangPatterns, RecordWildCards, ViewPatterns,              DoAndIfThenElse, PatternGuards #-}+{-# OPTIONS_GHC -fwarn-incomplete-patterns #-} -- | HTTP downloader tailored for web-crawler needs. -- --  * Handles all possible http-conduit exceptions and returns --    human readable error messages. -----  * Handles some web server bugs (no persistent connections on HTTP/1.1,---    returning @deflate@ data instead of @gzip@)+--  * Handles some web server bugs (returning @deflate@ data instead of @gzip@). -- --  * Ignores invalid SSL sertificates. --@@ -237,6 +237,8 @@                         -- implement HTTP/1.1 persistent connections.                         -- Try again                         -- https://github.com/snoyberg/http-conduit/issues/89+                        -- Fixed in+                        -- https://github.com/snoyberg/http-conduit/issues/117                     _ ->                         return $ fromMaybe (DRError "Timeout") r         dl True@@ -273,6 +275,8 @@     C.FailedConnectionException _host _port -> DRError "Connection failed"     C.ExpectedBlankAfter100Continue -> DRError "Expected blank after 100 (Continue)"     C.InvalidStatusLine l -> DRError $ "Invalid HTTP status line:\n" ++ B.unpack l+    C.NoResponseDataReceived -> DRError "No response data received"+    C.TlsException e -> DRError $ "TLS exception:\n" ++ show e     C.InvalidHeader h -> DRError $ "Invalid HTTP header:\n" ++ B.unpack h     C.InternalIOException e ->         case show e of
http-conduit-downloader.cabal view
@@ -1,6 +1,6 @@ cabal-version:  >= 1.6 name:           http-conduit-downloader-version:        1.0.5+version:        1.0.6 copyright:      Vladimir Shabanov 2013 author:         Vladimir Shabanov <vshabanoff@gmail.com> maintainer:     Vladimir Shabanov <vshabanoff@gmail.com>@@ -17,8 +17,7 @@      * Handles all possible http-conduit exceptions and returns        human readable error messages.     .-     * Handles some web server bugs (no persistent connections on HTTP/1.1,-       returning 'deflate' data instead of 'gzip')+     * Handles some web server bugs (returning 'deflate' data instead of 'gzip').     .      * Ignores invalid SSL sertificates.     .@@ -40,7 +39,7 @@  library     build-depends:-        base == 4.*, http-conduit >= 1.9, network, zlib, lifted-base,+        base == 4.*, http-conduit >= 1.9.2.2, network, zlib, lifted-base,         conduit, resourcet, http-types, tls, data-default, bytestring, mtl      exposed-modules: