Hello community,
here is the log from the commit of package ghc-http-client-tls for
openSUSE:Factory checked in at 2017-06-04 01:57:42
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-http-client-tls (Old)
and /work/SRC/openSUSE:Factory/.ghc-http-client-tls.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ghc-http-client-tls"
Sun Jun 4 01:57:42 2017 rev:8 rq:499708 version:0.3.4.2
Changes:
--------
--- /work/SRC/openSUSE:Factory/ghc-http-client-tls/ghc-http-client-tls.changes
2017-05-10 20:49:34.390842679 +0200
+++
/work/SRC/openSUSE:Factory/.ghc-http-client-tls.new/ghc-http-client-tls.changes
2017-06-04 01:57:43.702006622 +0200
@@ -1,0 +2,5 @@
+Thu May 18 09:52:24 UTC 2017 - [email protected]
+
+- Update to version 0.3.4.2 with cabal2obs.
+
+-------------------------------------------------------------------
Old:
----
http-client-tls-0.3.4.1.tar.gz
New:
----
http-client-tls-0.3.4.2.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ ghc-http-client-tls.spec ++++++
--- /var/tmp/diff_new_pack.W6SWo2/_old 2017-06-04 01:57:44.161941645 +0200
+++ /var/tmp/diff_new_pack.W6SWo2/_new 2017-06-04 01:57:44.161941645 +0200
@@ -19,7 +19,7 @@
%global pkg_name http-client-tls
%bcond_with tests
Name: ghc-%{pkg_name}
-Version: 0.3.4.1
+Version: 0.3.4.2
Release: 0
Summary: Http-client backend using the connection package and tls
library
License: MIT
++++++ http-client-tls-0.3.4.1.tar.gz -> http-client-tls-0.3.4.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/http-client-tls-0.3.4.1/ChangeLog.md
new/http-client-tls-0.3.4.2/ChangeLog.md
--- old/http-client-tls-0.3.4.1/ChangeLog.md 2017-04-07 12:39:37.000000000
+0200
+++ new/http-client-tls-0.3.4.2/ChangeLog.md 2017-05-01 11:15:44.000000000
+0200
@@ -1,3 +1,7 @@
+## 0.3.4.2
+
+* Never throw exceptions on 401 status in `applyDigestAuth`
+
## 0.3.4.1
* Better exception cleanup behavior
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/http-client-tls-0.3.4.1/Network/HTTP/Client/TLS.hs
new/http-client-tls-0.3.4.2/Network/HTTP/Client/TLS.hs
--- old/http-client-tls-0.3.4.1/Network/HTTP/Client/TLS.hs 2017-03-03
05:31:27.000000000 +0100
+++ new/http-client-tls-0.3.4.2/Network/HTTP/Client/TLS.hs 2017-05-01
11:11:20.000000000 +0200
@@ -299,7 +299,7 @@
-> Request
-> Manager
-> m (n Request)
-applyDigestAuth user pass req man = liftIO $ do
+applyDigestAuth user pass req0 man = liftIO $ do
res <- httpNoBody req man
let throw' = throwM . DigestAuthException req res
return $ do
@@ -360,6 +360,10 @@
, cookieJar = Just $ responseCookieJar res
}
where
+ -- Since we're expecting a non-200 response, ensure we do not
+ -- throw exceptions for such responses.
+ req = req0 { checkResponse = \_ _ -> return () }
+
stripCI x y
| CI.mk x == CI.mk (S.take len y) = Just $ S.drop len y
| otherwise = Nothing
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/http-client-tls-0.3.4.1/http-client-tls.cabal
new/http-client-tls-0.3.4.2/http-client-tls.cabal
--- old/http-client-tls-0.3.4.1/http-client-tls.cabal 2017-04-07
12:39:41.000000000 +0200
+++ new/http-client-tls-0.3.4.2/http-client-tls.cabal 2017-05-01
11:15:23.000000000 +0200
@@ -1,5 +1,5 @@
name: http-client-tls
-version: 0.3.4.1
+version: 0.3.4.2
synopsis: http-client backend using the connection package and tls
library
description: Hackage documentation generation is not reliable. For up
to date documentation, please see:
<https://www.stackage.org/package/http-client-tls>.
homepage: https://github.com/snoyberg/http-client