Skip to content

Commit

Permalink
Fix 'defaultCheckCerts'.
Browse files Browse the repository at this point in the history
Backported from <snoyberg/http-conduit#6>.
  • Loading branch information
meteficha committed Jan 17, 2012
1 parent 2768d82 commit 162c391
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Network/HTTP/Enumerator.hs
Expand Up @@ -651,7 +651,7 @@ defaultCheckCerts :: W.Ascii -> [X509] -> IO TLS.TLSCertificateUsage
defaultCheckCerts host' certs =
case certificateVerifyDomain (S8.unpack host') certs of
TLS.CertificateUsageAccept -> certificateVerifyChain certs
_ -> return TLS.CertificateUsageAccept
rejected -> return rejected

instance Default (Request m) where
def = Request
Expand Down

0 comments on commit 162c391

Please sign in to comment.