-
Notifications
You must be signed in to change notification settings - Fork 701
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cabal-install: allow Basic authentication in curl transport
Allow the curl transport to use Basic authentication, if and only if the url scheme is HTTPS (i.e. TLS will be used). Retain the existing behaviour (force Digest scheme) for insecure requests. This change is required to support upcoming hackage-server changes. The wget transport already supports Basic authentication.
- Loading branch information
1 parent
d5c1ee5
commit 9693c34
Showing
2 changed files
with
19 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
synopsis: `curl` transport now supports Basic authentication | ||
packages: cabal-install | ||
prs: #10089 | ||
|
||
description: { | ||
|
||
- The `curl` HTTP transport previously only supported the HTTP Digest | ||
authentication scheme. Basic authentication is now supported | ||
when using HTTPS; Curl will use the scheme offered by the server. | ||
The `wget` transport already supports HTTPS. | ||
|
||
} |